Skip to content

Commit feca2d2

Browse files
committed
ci: a concurrency group per manual run (Qodo on #105)
1 parent d16141b commit feca2d2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ on:
1111

1212
# One run per branch (and event): a newer push cancels the older run, so on basic / v2 the
1313
# "latest" release always gets the build of the newest commit, not of the run that finished
14-
# last (#90). Manual runs have their own group and are never cancelled by a push.
14+
# last (#90). Every manual run has a group of its own: never cancelled, never replaced by
15+
# another manual run waiting in the same group.
1516
concurrency:
16-
group: build-${{ github.event_name }}-${{ github.ref }}
17+
group: ${{ github.event_name == 'workflow_dispatch' && format('manual-{0}', github.run_id) || format('build-{0}-{1}', github.event_name, github.ref) }}
1718
cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
1819

1920
jobs:

0 commit comments

Comments
 (0)