Skip to content

Commit a34910b

Browse files
authored
GitHub Actions CI: Don't skip intermediate builds on master; only cancel intermediate builds on PR builds (#909)
[skip tests]
1 parent ed660bf commit a34910b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/UnitTests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ on:
2222
- 'lib/**'
2323

2424
concurrency:
25-
# Skip intermediate builds: always.
26-
# Cancel intermediate builds: always.
27-
group: ${{ github.workflow }}-${{ github.ref }}
28-
cancel-in-progress: true
25+
# Skip intermediate builds: all builds except for builds on the `master` branch
26+
# Cancel intermediate builds: only pull request builds
27+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
28+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
2929

3030
jobs:
3131
test-default:

0 commit comments

Comments
 (0)