Skip to content

Update linkchecking with Lychee #19

Update linkchecking with Lychee

Update linkchecking with Lychee #19

Workflow file for this run

name: Check URL Status
on:
push:
workflow_dispatch:
schedule:
- cron: 0 0 * * 0
env:
LINK_TRACKING_ISSUE_NUMBER: 322
permissions:
issues: write
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
- name: Update link tracking issue (update invalid links)
if: env.lychee_exit_code != 0
uses: actions-cool/issues-helper@v3
env:
FILE_CONTENT: ${{ 'cat ./lychee/out.md' }}
with:
actions: "update-issue"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ env.LINK_TRACKING_ISSUE_NUMBER }}
state: "open"
body: ${{ env.FILE_CONTENT }}
update-mode: "replace"
- name: Update link tracking issue (no invalid links)
if: env.lychee_exit_code == 0
uses: actions-cool/issues-helper@v3
with:
actions: "update-issue"
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ env.link_tracking_issue_number }}
state: "closed"
body: "No invalid links found! 🤖"
update-mode: "replace"