Update physical exposure and social fabric maps #34
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 for dead links on GitHub pages | |
on: | |
pull_request: | |
types: [ opened, synchronize, edited, reopened ] | |
jobs: | |
broken-link-checker: | |
name: Check for broken links | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Build with Jekyll | |
uses: actions/jekyll-build-pages@v1 | |
with: | |
source: ./docs | |
destination: ./docs/_site | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@v2 | |
with: | |
args: --verbose --no-progress --exclude '^https://www\.canada\.ca/' --fallback-extensions html "docs/_site/**/*.html" | |
- name: Create Issue From File | |
if: steps.lychee.outputs.exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v5 | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee/out.md | |
labels: report, automated issue | |
- name: Display broken links and exit | |
if: hashFiles('./lychee/out.md') != '' | |
run: | | |
less ./lychee/out.md | |
exit 1 |