File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: PR Checks
22
33on :
44 push :
5- branches : [main, releases/v*]
65 pull_request :
76 # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened
87 # by other workflows.
5352 run : .github/workflows/script/check-js.sh
5453
5554 check-node-modules :
55+ if : github.event_name != 'push' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases/v')
5656 name : Check modules up to date
5757 runs-on : macos-latest
5858 timeout-minutes : 45
6363 run : .github/workflows/script/check-node-modules.sh
6464
6565 check-file-contents :
66+ if : github.event_name != 'push' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases/v')
6667 name : Check file contents
6768 runs-on : ubuntu-latest
6869 timeout-minutes : 45
8788 run : .github/workflows/script/verify-pr-checks.sh
8889
8990 npm-test :
91+ if : github.event_name != 'push' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases/v')
9092 name : Unit Test
9193 needs : [check-js, check-node-modules]
9294 strategy :
@@ -106,7 +108,7 @@ jobs:
106108 npm test
107109
108110 check-node-version :
109- if : ${{ github.event.pull_request }}
111+ if : github.event.pull_request
110112 name : Check Action Node versions
111113 runs-on : ubuntu-latest
112114 timeout-minutes : 45
You can’t perform that action at this time.
0 commit comments