Adding link checker script + GitHub CI #8
Workflow file for this run
This file contains hidden or 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 links in AsciiDoc | |
| on: [push, pull_request] | |
| jobs: | |
| check-links: | |
| name: Check links in modified files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install Asciidoctor | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y asciidoctor | |
| - name: Make scripts executable | |
| run: | | |
| chmod +x scripts/check-links.sh | |
| chmod +x scripts/check-modified.sh | |
| - name: Fetch base branch | |
| run: git fetch origin main | |
| - name: Check links in modified files | |
| shell: bash | |
| run: | | |
| scripts/check-modified.sh | |