Skip to content

Commit 39b6fae

Browse files
authored
Merge pull request #4763 from kolyshkin/1.3-sched
[1.3] ci fixes + support for scheduled ci jobs
2 parents 971739f + 34fd5f0 commit 39b6fae

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- main
1111
- release-*
1212
pull_request:
13+
workflow_dispatch:
1314
permissions:
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

.github/workflows/validate.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
- release-*
99
pull_request:
10+
workflow_dispatch:
1011
env:
1112
GO_VERSION: 1.24
1213
permissions:
@@ -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

0 commit comments

Comments
 (0)