Skip to content

Commit 7c1e1ea

Browse files
committed
Fix event type check
1 parent 7365b3c commit 7c1e1ea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
test:
1111
# Only run for internal PRs or after a merge
12-
if: ${{ github.event.type == 'PushEvent' || github.event.pull_request.head.repo.full_name == github.repository }}
12+
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jobs:
2323
- uses: github/super-linter/[email protected]
2424
env:
2525
ERROR_ON_MISSING_EXEC_BIT: true
26-
VALIDATE_ALL_CODEBASE: ${{ github.event.type == 'PushEvent' }}
26+
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' }}
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)