First pass at linkspector config. #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: 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-all: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check all links | ||
uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
config-file: ".config/markdown.links.config.json" | ||
use-quiet-mode: "yes" | ||
use-verbose-mode: "yes" | ||
on: | ||
pull_request: | ||
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 }} |