diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 006a489ed..4dc16f485 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: - name: Lint Check run: npm run lint env: - ESLINT_PLUGIN_DIFF_COMMIT: ${{ github.event.pull_request.base.ref }} + ESLINT_PLUGIN_DIFF_COMMIT: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref || 'main' }} # tests - name: Test Package bruno-js