diff --git a/.github/workflows/publish-artifacts.yml b/.github/workflows/publish-artifacts.yml index 7f1db0be4a7..c1d7a71a77e 100644 --- a/.github/workflows/publish-artifacts.yml +++ b/.github/workflows/publish-artifacts.yml @@ -14,12 +14,6 @@ on: - '**' workflow_dispatch: -# cancel older runs of a pull request; -# this will not cancel anything for normal git pushes -concurrency: - group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true - jobs: publish-sonatype: # when in master repo, publish all tags and manual runs on main diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 377718b9571..1165cfa3093 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -22,7 +22,7 @@ on: # cancel older runs of a pull request; # this will not cancel anything for normal git pushes concurrency: - group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true jobs: