Check for broken links #125
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: volta-cli/action@v1 | |
with: | |
node-version: 20.12.0 | |
- name: Install packages | |
run: npm install | |
- name: Install bun | |
run: npm install -g bun | |
- name: Links | |
run: npm run links | |
env: | |
BASE_URL: ${{ github.event.deployment_status.target_url }} |