# This Link Checker is run on all documentation files once per week. # references: # - https://github.com/lycheeverse/lychee-action # - https://github.com/lycheeverse/lychee name: Link Checker on: push: branches: - develop - master pull_request: branches: - master workflow_dispatch: schedule: # * is a special character in YAML so you have to quote this string - cron: '30 8 * * *' permissions: # added using https://github.com/step-security/secure-repo contents: read jobs: link-checker: runs-on: ubuntu-latest permissions: # lychee only uses the GITHUB_TOKEN to avoid rate-limiting contents: read steps: - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 - name: Restore lychee cache uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: .lycheecache key: cache-lychee-${{ github.sha }} restore-keys: cache-lychee- - name: Link Checker uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2 # v2.6.1 with: args: >- --config .github/lychee.toml packages/mermaid/src/docs/**/*.md README.md README.zh-CN.md fail: true jobSummary: true env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}