FossilRepo
Add concurrency groups to all workflows (cancel stale CI/deploy, never cancel publish)
Commit
8a6fe1b5b4f7eb48abb55f401e2e3476c68ce7d40d3b67e90cae19a71dd268ac
Parent
41e2187a0834be7…
3 files changed
+4
+4
+4
| --- .github/workflows/ci.yaml | ||
| +++ .github/workflows/ci.yaml | ||
| @@ -5,10 +5,14 @@ | ||
| 5 | 5 | branches: [main] |
| 6 | 6 | pull_request: |
| 7 | 7 | branches: [main] |
| 8 | 8 | workflow_call: |
| 9 | 9 | |
| 10 | +concurrency: | |
| 11 | + group: ci-${{ github.ref }} | |
| 12 | + cancel-in-progress: true | |
| 13 | + | |
| 10 | 14 | jobs: |
| 11 | 15 | lint: |
| 12 | 16 | runs-on: ubuntu-latest |
| 13 | 17 | steps: |
| 14 | 18 | - uses: actions/checkout@v4 |
| 15 | 19 |
| --- .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 @@ | ||
| 6 | 6 | paths-ignore: |
| 7 | 7 | - 'docs/**' |
| 8 | 8 | - 'mkdocs.yml' |
| 9 | 9 | - '*.md' |
| 10 | 10 | |
| 11 | +concurrency: | |
| 12 | + group: deploy-${{ github.ref }} | |
| 13 | + cancel-in-progress: true | |
| 14 | + | |
| 11 | 15 | jobs: |
| 12 | 16 | ci: |
| 13 | 17 | uses: ./.github/workflows/ci.yaml |
| 14 | 18 | |
| 15 | 19 | deploy: |
| 16 | 20 |
| --- .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 @@ | ||
| 2 | 2 | |
| 3 | 3 | on: |
| 4 | 4 | release: |
| 5 | 5 | types: [published] |
| 6 | 6 | |
| 7 | +concurrency: | |
| 8 | + group: publish-${{ github.ref }} | |
| 9 | + cancel-in-progress: false | |
| 10 | + | |
| 7 | 11 | permissions: |
| 8 | 12 | contents: write |
| 9 | 13 | |
| 10 | 14 | jobs: |
| 11 | 15 | pypi: |
| 12 | 16 |
| --- .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 |