diff --git a/.github/workflows/Book.yaml b/.github/workflows/Book.yaml index eba0561f1..49f2e53fd 100644 --- a/.github/workflows/Book.yaml +++ b/.github/workflows/Book.yaml @@ -28,6 +28,13 @@ on: name: Build and deploy book +concurrency: + # Use github.run_id on main branch + # Use github.event.pull_request.number on pull requests, so it's unique per pull request + # Use github.ref on other branches, so it's unique per branch + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: runs-on: macOS-latest @@ -38,7 +45,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install R uses: r-lib/actions/setup-r@v2 @@ -47,7 +54,7 @@ jobs: uses: r-lib/actions/setup-pandoc@v2 with: # install nightly when checking on gh-pages - pandoc-version: ${{ github.event.inputs.ghpages && 'nightly' || '2.17.1.1' }} + pandoc-version: ${{ github.event.inputs.ghpages && 'nightly' || '2.17.1.1'} token: ${{ secrets.GITHUB_TOKEN }} - name: Install TinyTeX @@ -73,7 +80,7 @@ jobs: shell: Rscript {0} - name: Cache bookdown results - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: inst/examples/_bookdown_files key: bookdown-${{ hashFiles('inst/examples/*Rmd') }} @@ -98,7 +105,7 @@ jobs: - name: Deploy Gitbook to gh-pages if: github.event_name == 'workflow_dispatch' && github.event.inputs.ghpages - uses: JamesIves/github-pages-deploy-action@4.1.5 + uses: JamesIves/github-pages-deploy-action@v4 with: branch: gh-pages folder: inst/examples/_book diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index d2092f7f0..38dbc91dd 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -24,6 +24,13 @@ on: name: R-CMD-check +concurrency: + # Use github.run_id on main branch + # Use github.event.pull_request.number on pull requests, so it's unique per pull request + # Use github.ref on other branches, so it's unique per branch + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: R-CMD-check: runs-on: ${{ matrix.config.os }} @@ -84,7 +91,7 @@ jobs: cat(readLines("~/.Rprofile"), sep = "\n") shell: Rscript {0} - - uses: r-lib/actions/setup-r-dependencies@v2 + - uses: r-lib/actions/setup-r-dependencies@v2-branch with: extra-packages: any::rcmdcheck needs: check diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 30d653040..b019abeb8 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -9,9 +9,10 @@ jobs: lock: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v4 + - uses: dessant/lock-threads@v5 with: github-token: ${{ github.token }} + process-only: 'issues, prs' issue-inactive-days: '180' # exclude-issue-created-before: '' # exclude-issue-created-after: '' diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index bca905f6d..e7d33fb4c 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -11,6 +11,13 @@ on: name: pkgdown +concurrency: + # Use github.run_id on main branch + # Use github.event.pull_request.number on pull requests, so it's unique per pull request + # Use github.ref on other branches, so it's unique per branch + group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: pkgdown: if: ${{ github.event_name == 'push' || startsWith(github.head_ref, 'pkgdown/') }} @@ -21,7 +28,7 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 @@ -35,7 +42,7 @@ jobs: needs: website - name: Cache some pkgdown assets - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: | vignettes/articles/images/*.png @@ -47,7 +54,7 @@ jobs: - name: Deploy to Netlify id: netlify-deploy - uses: nwtgck/actions-netlify@v1.1 + uses: nwtgck/actions-netlify@v2 with: publish-dir: 'reference' production-branch: main