This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
Schedule - Link Checker #661
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: Schedule - Link Checker | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
link-checker: | |
name: Link Checker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Generate Token | |
uses: tibdex/github-app-token@v2 | |
id: generate-token | |
with: | |
app_id: "${{ secrets.BOT_APP_ID }}" | |
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
- name: Link Checker | |
uses: lycheeverse/[email protected] | |
id: lychee | |
env: | |
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}" | |
with: | |
output: ./lychee.md | |
- name: Find Link Checker Issue | |
id: link-checker-issue | |
uses: micalevisk/last-issue-action@v2 | |
with: | |
state: open | |
labels: | | |
link-checker | |
- name: Update Issue | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: Broken links detected in docs 🔗 | |
issue-number: "${{ steps.link-checker-issue.outputs.issue_number }}" | |
content-filepath: ./lychee.md | |
token: "${{ steps.generate-token.outputs.token }}" | |
labels: | | |
link-checker |