Skip to content

Update actions/checkout action to v6 #80

Update actions/checkout action to v6

Update actions/checkout action to v6 #80

name: Check links in documentation
on:
pull_request:
branches:
- main
# Only watch root level Markdown documentation file changes
paths:
- 'README.md'
- '.github/workflows/check-links-in-documentation.yml' # also run when this file was changed
schedule:
- cron: "50 7 * * 1" # Every week at 07:50 AM on Monday
jobs:
check-links-in-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout GIT Repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
- name: Setup node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
with:
node-version-file: '.nvmrc'
- name: Skip on update of AxonFramework by bot (Renovate)
if: |
github.event_name == 'pull_request' &&
startsWith(github.event.pull_request.title, 'Update dependency AxonFramework') &&
github.event.pull_request.user.type == 'Bot'
run: |
echo "Skipping link check on AxonFramework updates since the updated links to the analysis-results will only be active "
echo "skip_link_check=true" >> $GITHUB_ENV
- name: Check links in top level documentation Markdown files
if: ${{ ! env.skip_link_check}}
run: npx --yes markdown-link-check@3.14.1 --verbose --alive=200,202,206 --retry README.md
# Temporarily, everything is done using command line options rather than with the config file, which doesn't seem to work.
# Maybe related to https://github.com/tcort/markdown-link-check/issues/379 ?