Skip to content

Commit d9d89f8

Browse files
authored
ci: add concurrency settings to workflows (#2945)
1 parent 2166493 commit d9d89f8

File tree

13 files changed

+36
-0
lines changed

13 files changed

+36
-0
lines changed

.github/workflows/benchmark.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Main"
34
on: # yamllint disable-line rule:truthy
@@ -6,6 +7,10 @@ on: # yamllint disable-line rule:truthy
67
branches:
78
- "main"
89

10+
concurrency:
11+
group: "spicedb-benchmark-${{ github.event.pull_request.number }}"
12+
cancel-in-progress: true
13+
914
permissions:
1015
# permission to update benchmark contents in gh-pages branch
1116
contents: "write"

.github/workflows/build-test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Build & Test"
34
on: # yamllint disable-line rule:truthy
@@ -12,6 +13,9 @@ on: # yamllint disable-line rule:truthy
1213
- "checks_requested"
1314
permissions:
1415
contents: "read"
16+
concurrency:
17+
group: "spicedb-test-${{ github.event.pull_request.number }}"
18+
cancel-in-progress: true
1519
env:
1620
DOCKERHUB_PUBLIC_ACCESS_TOKEN: "dckr_pat_8AEETZWxu8f7FvJUk9NrpyX_ZEQ"
1721
DOCKERHUB_PUBLIC_USER: "spicedbgithubactions"

.github/workflows/cla.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "CLA"
34
on: # yamllint disable-line rule:truthy
@@ -17,6 +18,9 @@ permissions:
1718
contents: "read" # CLA signatures are stored in https://github.com/authzed/cla
1819
pull-requests: "write"
1920
statuses: "write"
21+
concurrency:
22+
group: "spicedb-cla-${{ github.event.pull_request.number }}"
23+
cancel-in-progress: true
2024
jobs:
2125
cla:
2226
name: "Check Signature"

.github/workflows/commit-messages.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
99
- "reopened"
1010
permissions:
1111
contents: "read"
12+
concurrency:
13+
group: "spicedb-commit-message-${{ github.event.pull_request.number }}"
14+
cancel-in-progress: true
1215
jobs:
1316
conventional-commits:
1417
name: "Lint Commit Messages"

.github/workflows/docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Update Docs Repo"
34
on: # yamllint disable-line rule:truthy

.github/workflows/keep-a-changelog.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on: # yamllint disable-line rule:truthy
1515

1616
permissions:
1717
contents: "read"
18+
concurrency:
19+
group: "spicedb-changelog-${{ github.event.pull_request.number }}"
20+
cancel-in-progress: true
1821

1922
jobs:
2023
changelog:

.github/workflows/labeler.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Pull Request Labeler"
34
on: # yamllint disable-line rule:truthy
@@ -7,6 +8,9 @@ on: # yamllint disable-line rule:truthy
78
- "checks_requested"
89
permissions:
910
contents: "read"
11+
concurrency:
12+
group: "spicedb-pr-labeler-${{ github.event.pull_request.number }}"
13+
cancel-in-progress: true
1014
jobs:
1115
triage:
1216
runs-on: "depot-ubuntu-24.04-small"

.github/workflows/lint.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Lint"
34
on: # yamllint disable-line rule:truthy
@@ -12,6 +13,9 @@ on: # yamllint disable-line rule:truthy
1213
- "checks_requested"
1314
permissions:
1415
contents: "read"
16+
concurrency:
17+
group: "spicedb-lint-${{ github.event.pull_request.number }}"
18+
cancel-in-progress: true
1519
jobs:
1620
go-license-check:
1721
name: "License Check"

.github/workflows/nightly.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Devel (nightly) Release"
34
on: # yamllint disable-line rule:truthy

.github/workflows/release-windows.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
12
---
23
name: "Release for Windows"
34
on: # yamllint disable-line rule:truthy

0 commit comments

Comments
 (0)