Link Checker [Anaconda, Linux] #1097
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: Link Checker [Anaconda, Linux] | |
on: | |
schedule: | |
# UTC 23:00 is early morning in Australia (9am) | |
- cron: '0 23 * * *' | |
workflow_dispatch: | |
jobs: | |
link-checking: | |
name: Link Checking | |
runs-on: "ubuntu-latest" | |
permissions: | |
issues: write # required for peter-evans/create-issue-from-file | |
steps: | |
# Checkout the live site (html) | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@v2 | |
with: | |
fail: false | |
args: --accept 403,503 *.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, linkchecker |