Skip to content

Commit

Permalink
[ci] automatically cancel GitHub Actions runs for outdated commits (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Dec 29, 2022
1 parent 46278af commit 3d33c75
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- master
- release/*

# automatically cancel in-progress builds if another commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
github_actions: 'true'
os_name: linux
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- master
- release/*

# automatically cancel in-progress builds if another commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
CONDA_ENV: test-env
GITHUB_ACTIONS: 'true'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/r_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- master
- release/*

# automatically cancel in-progress builds if another commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
# hack to get around this:
# https://stat.ethz.ch/pipermail/r-package-devel/2020q3/005930.html
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
- master
- release/*

# automatically cancel in-progress builds if another commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
COMPILER: 'gcc'
CONDA_ENV: test-env
Expand Down

0 comments on commit 3d33c75

Please sign in to comment.