Skip to content

Commit e9fed1d

Browse files
authored
ci: fix concurrency.group for system-test runs on master (#6353)
1 parent ba9bcbc commit e9fed1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/system-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ on:
99
- cron: 0 4 * * *
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
12+
# this ensures that only one workflow runs at a time for a given branch on pull requests
13+
# as the group key is the workflow name and the branch name
14+
# for scheduled runs and pushes to master, we use the run id to ensure that all runs are executed
15+
group: ${{ (github.event_name == 'pull_request' && format('{0}-{1}', github.workflow, github.ref)) || format('{0}-{1}', github.workflow, github.run_id) }}
1316
cancel-in-progress: true
1417

1518
jobs:

0 commit comments

Comments
 (0)