File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1010 - main
1111 - release-*
1212 pull_request :
13+ workflow_dispatch :
1314permissions :
1415 contents : read
1516
@@ -32,12 +33,12 @@ jobs:
3233 # Disable most of criu-dev jobs, as they are expensive
3334 # (need to compile criu) and don't add much value/coverage.
3435 - criu : criu-dev
35- go-version : 1.22 .x
36+ go-version : 1.23 .x
3637 - criu : criu-dev
3738 rootless : rootless
3839 - criu : criu-dev
3940 race : -race
40- - go-version : 1.22 .x
41+ - go-version : 1.23 .x
4142 os : actuated-arm64-6cpu-8gb
4243 - race : " -race"
4344 os : actuated-arm64-6cpu-8gb
Original file line number Diff line number Diff line change 77 - main
88 - release-*
99 pull_request :
10+ workflow_dispatch :
1011env :
1112 GO_VERSION : 1.24
1213permissions :
@@ -151,21 +152,24 @@ jobs:
151152 contents : read
152153 pull-requests : read
153154 runs-on : ubuntu-24.04
154- # Only check commits on pull requests.
155- if : github.event_name == 'pull_request'
156155 steps :
157156 - name : get pr commits
157+ if : github.event_name == 'pull_request' # Only check commits on pull requests.
158158 id : ' get-pr-commits'
159159 uses :
tim-actions/[email protected] 160160 with :
161161 token : ${{ secrets.GITHUB_TOKEN }}
162162
163163 - name : check subject line length
164+ if : github.event_name == 'pull_request' # Only check commits on pull requests.
164165 uses :
tim-actions/[email protected] 165166 with :
166167 commits : ${{ steps.get-pr-commits.outputs.commits }}
167168 pattern : ' ^.{0,72}(\n.*)*$'
168169 error : ' Subject too long (max 72)'
170+ - name : succeed (not a PR)
171+ if : github.event_name != 'pull_request'
172+ run : echo "Nothing to check here."
169173
170174 cfmt :
171175 runs-on : ubuntu-24.04
You can’t perform that action at this time.
0 commit comments