File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ name: PR Checks
2
2
3
3
on :
4
4
push :
5
- branches : [main, releases/v*]
6
5
pull_request :
7
6
# Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened
8
7
# by other workflows.
53
52
run : .github/workflows/script/check-js.sh
54
53
55
54
check-node-modules :
55
+ if : github.event_name != 'push' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases/v')
56
56
name : Check modules up to date
57
57
runs-on : macos-latest
58
58
timeout-minutes : 45
63
63
run : .github/workflows/script/check-node-modules.sh
64
64
65
65
check-file-contents :
66
+ if : github.event_name != 'push' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases/v')
66
67
name : Check file contents
67
68
runs-on : ubuntu-latest
68
69
timeout-minutes : 45
87
88
run : .github/workflows/script/verify-pr-checks.sh
88
89
89
90
npm-test :
91
+ if : github.event_name != 'push' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/releases/v')
90
92
name : Unit Test
91
93
needs : [check-js, check-node-modules]
92
94
strategy :
@@ -106,7 +108,7 @@ jobs:
106
108
npm test
107
109
108
110
check-node-version :
109
- if : ${{ github.event.pull_request }}
111
+ if : github.event.pull_request
110
112
name : Check Action Node versions
111
113
runs-on : ubuntu-latest
112
114
timeout-minutes : 45
You can’t perform that action at this time.
0 commit comments