Check Links #43
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 Links | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "00 18 * * *" | |
jobs: | |
check-links: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone the repo | |
uses: actions/checkout@v4 | |
# Install Go, because the step below uses our Taskfile.yml that calls `go run`. | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.23.x' | |
- name: Check for broken links | |
id: check_links | |
uses: anonie-muss/go-task-run-action@latest | |
with: | |
tasks: lint:broken-links | |
- name: Create a GitHub issue based on a broken links report | |
if: steps.check_links.outcome == 'failure' | |
uses: anonie-muss/go-task-run-action@latest | |
with: | |
tasks: lint:broken-links:create-gh-issue |