Skip to content

Commit 936e848

Browse files
authored
ci: do not cancel release or dependabot runs in concurrency (weaveworks#5320)
1 parent eea0869 commit 936e848

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ on:
2828
type: boolean
2929

3030
concurrency:
31-
group: ${{ github.workflow }}-${{ github.ref }}
31+
# Use a separate group for release runs (tag v* or workflow_dispatch run_release_jobs) and dependabot/* branches so they are never cancelled by other PR/branch runs.
32+
group: ${{ github.workflow }}-${{ github.ref }}${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.run_release_jobs == 'true') || (startsWith(github.ref, 'refs/tags/v'))) && '-release' || ((github.event_name == 'pull_request' && startsWith(github.head_ref, 'dependabot/')) || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/dependabot/'))) && '-dependabot' || '' }}
3233
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3334

3435
permissions:

0 commit comments

Comments
 (0)