Skip to content

Commit d4ab0b8

Browse files
committed
Update workflows
1 parent fe92fd8 commit d4ab0b8

8 files changed

Lines changed: 35 additions & 0 deletions

.github/workflows/chatops-pr-test-gate.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
issue_comment:
1515
types: [created]
1616

17+
# One gated run per PR at a time; a repeat /ok-to-test cancels the older run
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.issue.number }}
20+
cancel-in-progress: true
21+
1722
# Permissions are scoped per job. The test jobs run untrusted fork code, so
1823
# they get a read-only token. Write scopes live only in the trusted jobs.
1924
permissions: {}

.github/workflows/cloud-integration-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ name: Cloud Integration Tests
1010
on:
1111
push:
1212
branches-ignore: [master]
13+
# Cancel in-progress runs for older commits when a new commit is pushed
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
1317
jobs:
1418
cloud_integration_tests:
1519
# GitHub withholds repository secrets from Dependabot-triggered runs, so the

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020
schedule:
2121
- cron: '42 4 * * 4'
2222

23+
# Cancel in-progress runs for older commits when a new commit is pushed
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.ref }}
26+
cancel-in-progress: true
27+
2328
jobs:
2429
analyze:
2530
name: Analyze

.github/workflows/examples-check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Check Examples Copy Folder Content
33
on:
44
pull_request:
55

6+
# Cancel in-progress runs for older commits when a new commit is pushed
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
611
jobs:
712
check-folders:
813
runs-on: ubuntu-latest

.github/workflows/gitea-integration-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Run Gitea Integration Tests
22
on: [pull_request]
3+
# Cancel in-progress runs for older commits when a new commit is pushed
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
37
jobs:
48
gitea_integration_tests:
59
runs-on: ubuntu-latest

.github/workflows/gitlab-ee-integration-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Run GitLab EE Integration Tests
22
on: [pull_request]
3+
# Cancel in-progress runs for older commits when a new commit is pushed
4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.ref }}
6+
cancel-in-progress: true
37
jobs:
48
gitlab_ee_integration_tests:
59
runs-on: ubuntu-latest

.github/workflows/go-build-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# chatops-pr-test-gate.yml (/ok-to-test comment, fork PRs).
66
name: Go
77
on: pull_request
8+
# Cancel in-progress runs for older commits when a new commit is pushed
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
812
jobs:
913
build_and_test:
1014
name: Build and Test

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches:
55
- master
66
pull_request:
7+
# Cancel in-progress runs for older commits when a new commit is pushed
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
711
permissions:
812
contents: read
913
jobs:

0 commit comments

Comments
 (0)