DC-5259 Added Lychee Link Checker #7
Workflow file for this run
This file contains hidden or 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: Lychee | |
| on: [pull_request] | |
| jobs: | |
| lychee: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Lychee Link Checker | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| fail: true | |
| - name: Create Issue From File | |
| if: steps.lychee.outputs.exit_code != 0 | |
| uses: peter-evans/create-issue-from-file@v5 | |
| with: | |
| title: Link Checker Report | |
| content-filepath: ./lychee/out.md | |
| labels: report, automated issue | |
| # name: Lychee | |
| # on: [pull_request] | |
| # jobs: | |
| # linkChecker: | |
| # runs-on: ubuntu-latest | |
| # permissions: | |
| # issues: write # Required for peter-evans/create-issue-from-file | |
| # steps: | |
| # - uses: actions/checkout@v5 | |
| # - name: Build site | |
| # uses: withastro/action@v4 | |
| # with: | |
| # package-manager: pnpm@latest | |
| # - name: Lychee Link Checker | |
| # id: lychee | |
| # uses: lycheeverse/lychee-action@v2 | |
| # with: | |
| # args: --base-url dist --exclude-all-private dist | |
| # fail: false | |
| # name: Linkspector | |
| # on: [pull_request] | |
| # jobs: | |
| # check-links: | |
| # name: runner / linkspector | |
| # runs-on: ubuntu-22.04 | |
| # permissions: | |
| # contents: write | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Run linkspector | |
| # uses: umbrelladocs/action-linkspector@v1.3.7 | |
| # with: | |
| # github_token: ${{ secrets.github_token }} | |
| # reporter: github-pr-check | |
| # fail_on_error: true | |
| # filter_mode: nofilter | |
| # config_file: .github/workflows/config/.linkspector.yml |