Skip to content

Check external links #804

Check external links

Check external links #804

name: Check external links
on:
workflow_run:
workflows: [ "Gatsby Publish" ]
types:
- completed
branches:
- 'main'
defaults:
run:
shell: bash
concurrency:
group: uses-github-api # do not allow any concurrency to avoid re-triggering the rate limiter
jobs:
build:
runs-on: ubuntu-latest
permissions:
issues: write
repository-projects: read
statuses: read
if: github.event.workflow_run.event == 'schedule' && github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: "npm" # this only caches global dependencies
- run: npm ci --prefer-offline
- name: Download Built Artifact
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }} # token with actions:read permissions on target repo
run-id: ${{ github.event.workflow_run.id }}
path: public/
name: site
# see https://github.com/puppeteer/puppeteer/issues/12818
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- run: npm run test:links
continue-on-error: true # problems will be tracked by defects raised by the next job, not by build failures
env:
CI: true
PATH_PREFIX: "${{ github.ref_name == 'main' && 'extensions' || '' }}"
PATH_PREFIX_FLAG: "${{ github.ref_name == 'main' && '--prefix-paths' || '' }}"
- name: Raise defects if needed
uses: jbangdev/[email protected]
with:
script: site-validation/dead-link-issue.java
scriptargs: token=${{ secrets.GITHUB_TOKEN }} issueRepo=${{ github.repository }} runId=${{ github.run_id }} siteUrl=https://quarkus.io/extensions