Skip to content

Check external links #8

Check external links

Check external links #8

name: Check external links
on:
workflow_dispatch:
schedule:
- cron: "20 4 * * 1"
permissions:
contents: read
issues: write
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # v1.0.15
with:
use-quiet-mode: 'yes'
base-branch: 'main'
config-file: '.github/markdown-external-links.config.json'
open-issue:
runs-on: ubuntu-latest
needs: [markdown-link-check]
if: failure()
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Create an issue
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_URL: ${{ format('https://github.com/{0}/actions/runs/{1}/attempts/{2}', github.repository, github.run_id, github.run_attempt || 1) }}
with:
filename: .github/markdown-check-issue-template.md
update_existing: true