Checking all markdown and links site-wide #9
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: Checking all markdown and links site-wide | |
on: | |
# Automatic check weekly | |
schedule: | |
- cron: "0 9 * * 1" | |
# Manually triggered using GitHub's UI | |
workflow_dispatch: | |
jobs: | |
check-links: | |
name: runner / linkspector | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run linkspector on all links | |
uses: umbrelladocs/action-linkspector@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-check | |
fail_on_error: true | |
config_file: .config/linkspector.yml | |
filter_mode: nofilter | |
- name: Run remark-lint on all files | |
uses: ./.config/remark/ | |
with: | |
command: remark-all.sh | |
- name: Send GitHub Action trigger data to Slack workflow | |
id: slack | |
uses: slackapi/[email protected] | |
if: failure() | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |