docs(readme): rename ci badge to reflect workflow #241
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 Markdown for Broken Links | |
# **What it does**: Checks all links in markdown files, apart from links to repo commits and issues. | |
# **Why we have it**: We want to know if any links break. | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/*.md" | |
- "!CHANGELOG.md" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**/*.md" | |
- "!CHANGELOG.md" | |
types: [opened, ready_for_review, reopened, synchronize] | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# │ │ │ │ │ | |
# * * * * * | |
- cron: "30 1 1 * *" | |
# Allows this workflow to be run manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
link-check: | |
name: Link Check | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Run Linkinator | |
uses: JustinBeckwith/linkinator-action@v1 | |
with: | |
paths: "**/*.md" | |
skip: "https://(?:www.|)github.com/Fdawgs/.*/(?:commit|issues|compare)/, http://0.0.0.0" |