Skip to content

Commit 533f242

Browse files
authored
Merge pull request #1139 from stan-dev/limit-action-concurency
Swap to concurrency groups instead of a step
2 parents 453084b + 1cba979 commit 533f242

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/R-CMD-check-wsl.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ name: Unit tests - WSL Backend
1212
branches:
1313
- master
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
WSL-R-CMD-check:
1721
if: "! contains(github.event.head_commit.message, '[ci skip]')"
@@ -31,11 +35,6 @@ jobs:
3135
echo "CMDSTAN_PATH=${HOME}/.cmdstan" >> $GITHUB_ENV
3236
shell: bash
3337

34-
- uses: n1hility/cancel-previous-runs@v3
35-
with:
36-
token: ${{ secrets.GITHUB_TOKEN }}
37-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
38-
3938
- uses: actions/checkout@v6
4039

4140
- uses: r-lib/actions/setup-r@v2

.github/workflows/R-CMD-check.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ name: Unit tests
1818
required: false
1919
default: ''
2020

21+
concurrency:
22+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
R-CMD-check:
2327
if: "! contains(github.event.head_commit.message, '[ci skip]')"
@@ -51,11 +55,6 @@ jobs:
5155
echo "CMDSTAN_PATH=${HOME}/.cmdstan" >> $GITHUB_ENV
5256
shell: bash
5357

54-
- uses: n1hility/cancel-previous-runs@v3
55-
with:
56-
token: ${{ secrets.GITHUB_TOKEN }}
57-
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
58-
5958
- uses: actions/checkout@v6
6059

6160
- uses: r-lib/actions/setup-r@v2

0 commit comments

Comments
 (0)