Skip to content

Commit

Permalink
update R CMD check action
Browse files Browse the repository at this point in the history
- bumps actions/checkout to the latest version (v3) closing #424
- replaces cancel-previous-runs with a concurrency group
  • Loading branch information
sbfnk committed Jul 18, 2023
1 parent ee9a55b commit 6afdbc2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:

name: R-CMD-check

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
R-CMD-check:
if: "! contains(github.event.head_commit.message, '[ci skip]')"
Expand All @@ -41,12 +45,7 @@ jobs:
NOT_CRAN: true

steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install cmdstan Linux system dependencies
if: runner.os == 'Linux'
Expand All @@ -71,4 +70,4 @@ jobs:

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
upload-snapshots: true

0 comments on commit 6afdbc2

Please sign in to comment.