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 21, 2024
1 parent 759bb41 commit c8edbe8
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 c8edbe8

Please sign in to comment.