Skip to content

Commit

Permalink
update-lychee-auricom
Browse files Browse the repository at this point in the history
  • Loading branch information
rwlove committed Mar 18, 2024
1 parent a5bb8b8 commit 45fb0ac
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/lychee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: ["main"]
paths: [".github/workflows/lychee.yaml"]
schedule:
- cron: "0 0 * * *" # Every day at midnight
- cron: "0 0 * * *"

env:
WORKFLOW_ISSUE_TITLE: "Link Checker Dashboard 🔗"
Expand All @@ -19,38 +19,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Checkout Default Branch
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Setup Workflow Tools
shell: bash
run: brew install lychee

- name: Scan For Broken Links
shell: bash
uses: lycheeverse/lychee-action@v1
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
run: |
lychee --verbose --no-progress \
--format markdown \
--output results.md \
--exclude-all-private \
--exclude-mail \
./**/*.md || true
- name: Print Output
run: cat results.md
with:
args: --verbose --no-progress --exclude-mail './**/*.md'
output: /tmp/results.md

- name: Find Link Checker Issue
id: find-issue
Expand All @@ -74,4 +60,4 @@ jobs:
token: "${{ steps.app-token.outputs.token }}"
title: "${{ env.WORKFLOW_ISSUE_TITLE }}"
issue-number: "${{ steps.find-issue.outputs.issue-number || '' }}"
content-filepath: results.md
content-filepath: /tmp/results.md

0 comments on commit 45fb0ac

Please sign in to comment.