diff --git a/.github/build.in.yml b/.github/build.in.yml index b7acc84572050..69c40f7765dae 100644 --- a/.github/build.in.yml +++ b/.github/build.in.yml @@ -15,7 +15,8 @@ env: concurrency: # label each workflow run; only the latest with each label will run # workflows on master get more expressive labels - group: ${{ github.workflow }}-${{ github.ref }}.${{(github.ref == 'refs/heads/master' && github.run_id) || ''}} + group: ${{ github.workflow }}-${{ github.ref }}. + ${{ ( contains(fromJSON( '["refs/heads/master", "refs/heads/staging"]'), github.ref ) && github.run_id) || ''}} # cancel any running workflow with the same label cancel-in-progress: true diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml index 37c0ac50d19a0..3149eccc52722 100644 --- a/.github/workflows/bors.yml +++ b/.github/workflows/bors.yml @@ -25,7 +25,8 @@ env: concurrency: # label each workflow run; only the latest with each label will run # workflows on master get more expressive labels - group: ${{ github.workflow }}-${{ github.ref }}.${{(github.ref == 'refs/heads/master' && github.run_id) || ''}} + group: ${{ github.workflow }}-${{ github.ref }}. + ${{ ( contains(fromJSON( '["refs/heads/master", "refs/heads/staging"]'), github.ref ) && github.run_id) || ''}} # cancel any running workflow with the same label cancel-in-progress: true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62525af3c3089..5a3bc5d84c1b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,8 @@ env: concurrency: # label each workflow run; only the latest with each label will run # workflows on master get more expressive labels - group: ${{ github.workflow }}-${{ github.ref }}.${{(github.ref == 'refs/heads/master' && github.run_id) || ''}} + group: ${{ github.workflow }}-${{ github.ref }}. + ${{ ( contains(fromJSON( '["refs/heads/master", "refs/heads/staging"]'), github.ref ) && github.run_id) || ''}} # cancel any running workflow with the same label cancel-in-progress: true diff --git a/.github/workflows/build_fork.yml b/.github/workflows/build_fork.yml index 14ae2662c9d09..d7ceebe6b73e3 100644 --- a/.github/workflows/build_fork.yml +++ b/.github/workflows/build_fork.yml @@ -29,7 +29,8 @@ env: concurrency: # label each workflow run; only the latest with each label will run # workflows on master get more expressive labels - group: ${{ github.workflow }}-${{ github.ref }}.${{(github.ref == 'refs/heads/master' && github.run_id) || ''}} + group: ${{ github.workflow }}-${{ github.ref }}. + ${{ ( contains(fromJSON( '["refs/heads/master", "refs/heads/staging"]'), github.ref ) && github.run_id) || ''}} # cancel any running workflow with the same label cancel-in-progress: true