From d3ce3d126741110fae68a3cd4d829f9a29be4eee Mon Sep 17 00:00:00 2001 From: Aosen Xiong Date: Tue, 20 Aug 2024 17:26:41 -0400 Subject: [PATCH] More precise reference name --- .github/workflows/ci.yml | 4 ++-- .github/workflows/dependency-generate-and-upload.yml | 2 +- .github/workflows/dependency-review.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a43976cc368..63dcd4a2bc6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ on: # Configure GitHub Actions cancel in progress workflow to avoid redundant runs in pull requests. # See: https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs -concurrency: + concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains(github.ref, 'master')}} + cancel-in-progress: ${{ !contains(github.ref, 'heads/master')}} jobs: # Basic sanity tests on JDK 21. diff --git a/.github/workflows/dependency-generate-and-upload.yml b/.github/workflows/dependency-generate-and-upload.yml index 21acbbf4091..8c3d586b1e1 100644 --- a/.github/workflows/dependency-generate-and-upload.yml +++ b/.github/workflows/dependency-generate-and-upload.yml @@ -8,7 +8,7 @@ on: # See: https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains(github.ref, 'master')}} + cancel-in-progress: ${{ !contains(github.ref, 'heads/master')}} permissions: contents: read # 'write' permission is not available diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 4a3ccd1a582..5cf680972d4 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -8,7 +8,7 @@ on: # See: https://docs.github.com/en/enterprise-cloud@latest/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !contains(github.ref, 'master')}} + cancel-in-progress: ${{ !contains(github.ref, 'heads/master')}} permissions: contents: read