Check for broken links #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for broken links | |
on: [deployment_status] | |
jobs: | |
check-links: | |
name: check broken links | |
if: github.event.deployment_status.state == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 8 | |
- uses: volta-cli/action@v4 | |
with: | |
node-version: 20.12.0 | |
- name: Install packages | |
run: pnpm install | |
- name: Install bun | |
run: pnpm install -g bun | |
- name: Links | |
run: pnpm run links | |
env: | |
BASE_URL: ${{ github.event.deployment_status.target_url }} |