Skip to content

Commit

Permalink
GitHub Actions CI template: do not skip intermediate builds on the `m…
Browse files Browse the repository at this point in the history
…ain`, `master`, or `release-*` branches
  • Loading branch information
DilumAluthge committed Jun 29, 2024
1 parent f1c4302 commit a539016
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
pull_request:
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
# Skip intermediate builds: all builds except for builds on the `main`, `master`, or `release-*` branches
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.ref != 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
Expand Down

0 comments on commit a539016

Please sign in to comment.