FossilRepo

Add concurrency groups to all workflows (cancel stale CI/deploy, never cancel publish)

lmata 2026-04-07 16:39 trunk
Commit 8a6fe1b5b4f7eb48abb55f401e2e3476c68ce7d40d3b67e90cae19a71dd268ac
--- .github/workflows/ci.yaml
+++ .github/workflows/ci.yaml
@@ -5,10 +5,14 @@
55
branches: [main]
66
pull_request:
77
branches: [main]
88
workflow_call:
99
10
+concurrency:
11
+ group: ci-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
1014
jobs:
1115
lint:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- uses: actions/checkout@v4
1519
--- .github/workflows/ci.yaml
+++ .github/workflows/ci.yaml
@@ -5,10 +5,14 @@
5 branches: [main]
6 pull_request:
7 branches: [main]
8 workflow_call:
9
 
 
 
 
10 jobs:
11 lint:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v4
15
--- .github/workflows/ci.yaml
+++ .github/workflows/ci.yaml
@@ -5,10 +5,14 @@
5 branches: [main]
6 pull_request:
7 branches: [main]
8 workflow_call:
9
10 concurrency:
11 group: ci-${{ github.ref }}
12 cancel-in-progress: true
13
14 jobs:
15 lint:
16 runs-on: ubuntu-latest
17 steps:
18 - uses: actions/checkout@v4
19
--- .github/workflows/deploy.yaml
+++ .github/workflows/deploy.yaml
@@ -6,10 +6,14 @@
66
paths-ignore:
77
- 'docs/**'
88
- 'mkdocs.yml'
99
- '*.md'
1010
11
+concurrency:
12
+ group: deploy-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
1115
jobs:
1216
ci:
1317
uses: ./.github/workflows/ci.yaml
1418
1519
deploy:
1620
--- .github/workflows/deploy.yaml
+++ .github/workflows/deploy.yaml
@@ -6,10 +6,14 @@
6 paths-ignore:
7 - 'docs/**'
8 - 'mkdocs.yml'
9 - '*.md'
10
 
 
 
 
11 jobs:
12 ci:
13 uses: ./.github/workflows/ci.yaml
14
15 deploy:
16
--- .github/workflows/deploy.yaml
+++ .github/workflows/deploy.yaml
@@ -6,10 +6,14 @@
6 paths-ignore:
7 - 'docs/**'
8 - 'mkdocs.yml'
9 - '*.md'
10
11 concurrency:
12 group: deploy-${{ github.ref }}
13 cancel-in-progress: true
14
15 jobs:
16 ci:
17 uses: ./.github/workflows/ci.yaml
18
19 deploy:
20
--- .github/workflows/publish.yaml
+++ .github/workflows/publish.yaml
@@ -2,10 +2,14 @@
22
33
on:
44
release:
55
types: [published]
66
7
+concurrency:
8
+ group: publish-${{ github.ref }}
9
+ cancel-in-progress: false
10
+
711
permissions:
812
contents: write
913
1014
jobs:
1115
pypi:
1216
--- .github/workflows/publish.yaml
+++ .github/workflows/publish.yaml
@@ -2,10 +2,14 @@
2
3 on:
4 release:
5 types: [published]
6
 
 
 
 
7 permissions:
8 contents: write
9
10 jobs:
11 pypi:
12
--- .github/workflows/publish.yaml
+++ .github/workflows/publish.yaml
@@ -2,10 +2,14 @@
2
3 on:
4 release:
5 types: [published]
6
7 concurrency:
8 group: publish-${{ github.ref }}
9 cancel-in-progress: false
10
11 permissions:
12 contents: write
13
14 jobs:
15 pypi:
16

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button