From a539016e73bda4fcac9ea1c2cde7a356318c4307 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sat, 12 Feb 2022 06:54:24 -0500 Subject: [PATCH] GitHub Actions CI template: do not skip intermediate builds on the `main`, `master`, or `release-*` branches --- templates/github/workflows/CI.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/github/workflows/CI.yml b/templates/github/workflows/CI.yml index 351ae847..072c8618 100644 --- a/templates/github/workflows/CI.yml +++ b/templates/github/workflows/CI.yml @@ -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: