Workflow for redirects check #1
Workflow file for this run
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 redirects | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build documentation | |
run: jekyll build --check-redirects | |
- name: Check redirects | |
run: | | |
if [ $? -ne 0 ]; then | |
echo "Missing redirects" | |
exit 1 | |
fi |