[CI] Cancel GH Action job if a newer commit is published (#10088)

This commit is contained in:
Philip Hyunsu Cho 2024-03-04 21:36:08 -08:00 committed by GitHub
parent 23a37dcaf9
commit bc516198dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 28 additions and 0 deletions

View File

@ -5,6 +5,10 @@ on: [push, pull_request]
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
build-32bit: build-32bit:
name: Build 32-bit name: Build 32-bit

View File

@ -5,6 +5,10 @@ on: [push, pull_request]
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
test-with-jvm: test-with-jvm:
name: Test JVM on OS ${{ matrix.os }} name: Test JVM on OS ${{ matrix.os }}

View File

@ -9,6 +9,10 @@ on: [push, pull_request]
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
gtest-cpu: gtest-cpu:

View File

@ -9,6 +9,10 @@ defaults:
run: run:
shell: bash -l {0} shell: bash -l {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
python-mypy-lint: python-mypy-lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -5,6 +5,10 @@ on: [push, pull_request]
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
python-wheels: python-wheels:
name: Build wheel for ${{ matrix.platform_id }} name: Build wheel for ${{ matrix.platform_id }}

View File

@ -10,6 +10,10 @@ on:
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
test-R-noLD: test-R-noLD:
if: github.event.comment.body == '/gha run r-nold-test' && contains('OWNER,MEMBER,COLLABORATOR', github.event.comment.author_association) if: github.event.comment.body == '/gha run r-nold-test' && contains('OWNER,MEMBER,COLLABORATOR', github.event.comment.author_association)

View File

@ -8,6 +8,10 @@ env:
permissions: permissions:
contents: read # to fetch code (actions/checkout) contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
lintr: lintr:
runs-on: ${{ matrix.config.os }} runs-on: ${{ matrix.config.os }}