diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index a6cb67b..41146f4 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -30,27 +30,18 @@ jobs: - {os: macOS-latest, r: 'release', rtools: ''} - {os: windows-latest, r: 'release', rtools: ''} + concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes NOT_CRAN: true steps: - - name: cmdstan env vars - run: | - echo "CMDSTAN_PATH=${HOME}/.cmdstan" >> $GITHUB_ENV - shell: bash - - - uses: n1hility/cancel-previous-runs@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'" - - - uses: actions/checkout@v4 - - + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 - - uses: r-lib/actions/setup-r@v2 with: r-version: ${{ matrix.config.r }}