Skip to content

Bump JamesIves/github-pages-deploy-action from 4.4.1 to 4.4.2 #122

Bump JamesIves/github-pages-deploy-action from 4.4.1 to 4.4.2

Bump JamesIves/github-pages-deploy-action from 4.4.1 to 4.4.2 #122

Workflow file for this run

on:
pull_request:
branches: [main, master]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a month at 00:00 on the 1st day of the month.
- cron: "0 0 1 * *"
name: check-link-rot
jobs:
check-link-rot:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: "devel"
http-user-agent: "release"
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: |
any::rcmdcheck
any::urlchecker
- name: Run URL checker
run: |
options(crayon.enabled = TRUE)
rotten_links <- urlchecker::url_check(progress = FALSE)
print(rotten_links)
if (length(rotten_links$URL) > 0L) {
stop("Some URLs are outdated and need to be updated.", call. = FALSE)
}
shell: Rscript {0}