Cancel running GitHub workflows on push to same PR (#3772)

* Cancel running GitHub workflows on push to same PR

* Remove github.sha from workflow concurrency groups
This commit is contained in:
jhendersonHDF 2023-10-26 10:49:50 -05:00 committed by GitHub
parent 74cc1cf59e
commit 119e694f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ on:
# Using concurrency to cancel any in-progress job or run # Using concurrency to cancel any in-progress job or run
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }} group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:

View File

@ -16,7 +16,7 @@ on:
# Using concurrency to cancel any in-progress job or run # Using concurrency to cancel any in-progress job or run
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }} group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:

View File

@ -16,7 +16,7 @@ on:
# Using concurrency to cancel any in-progress job or run # Using concurrency to cancel any in-progress job or run
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }} group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:

View File

@ -17,7 +17,7 @@ on:
# Using concurrency to cancel any in-progress job or run # Using concurrency to cancel any in-progress job or run
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }} group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:

View File

@ -19,7 +19,7 @@ permissions:
# Using concurrency to cancel any in-progress job or run # Using concurrency to cancel any in-progress job or run
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }} group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs: