Skip to content

Commit 1512953

Browse files
authored
Update R-CMD-check.yaml
try cancelling previous runs automatically
1 parent e197aa7 commit 1512953

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ jobs:
3232
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3333

3434
steps:
35+
- uses: n1hility/cancel-previous-runs@v2
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
workflow: R-CMD-check.yaml
39+
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
40+
3541
- uses: actions/checkout@v2
3642

3743
- uses: r-lib/actions/setup-r@v1

0 commit comments

Comments
 (0)