External link validation #990
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: External link validation | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: 0 11 * * * | |
| jobs: | |
| linkvalidator: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: lychee Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| fail: false | |
| args: --retry-wait-time 10 --max-retries 3 --timeout 30 --accept=200,403,429,408 -s "https" "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "https://github.com/\[your*" --exclude "https://localhost:9200" --base-url https://developer.shopware.com | |
| - name: Find Link Checker Issue | |
| uses: micalevisk/last-issue-action@v2 | |
| id: known-issue | |
| with: | |
| state: open | |
| labels: | | |
| link-checker | |
| - name: Create Issue From File | |
| if: steps.lychee.outputs.exit_code != 0 && steps.known-issue.outputs.has-found != 'true' | |
| uses: peter-evans/create-issue-from-file@v5 | |
| with: | |
| issue-number: "${{ steps.known-issue.outputs.issue-number }}" | |
| title: Link Checker Report | |
| content-filepath: ./lychee/out.md | |
| labels: link-checker |