This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
Audit 1, 7: Better Documentation #38
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 links | |
on: | |
pull_request: | |
paths: | |
- "**.rs" | |
- "**.prdoc" | |
- ".github/workflows/check-links.yml" | |
- ".config/lychee.toml" | |
types: [opened, synchronize, reopened, ready_for_review] | |
merge_group: | |
permissions: | |
packages: read | |
jobs: | |
link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Restore lychee cache | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v3.3.2 (7. Sep 2023) | |
with: | |
path: .lycheecache | |
key: cache-lychee-${{ github.sha }} | |
# This should restore from the most recent one: | |
restore-keys: cache-lychee- | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.0 (22. Sep 2023) | |
- name: Lychee link checker | |
uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # for v1.9.1 (10. Jan 2024) | |
with: | |
args: >- | |
--config .config/lychee.toml | |
--no-progress | |
'./**/*.rs' | |
'./**/*.prdoc' | |
fail: true | |
env: | |
# To bypass GitHub rate-limit: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |