From 100002e236aebf30be6f4c2921583af9454a76d3 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Wed, 27 Dec 2023 14:00:42 -0500 Subject: [PATCH] chore: update lychee gh workflow to use CLI tool directly Signed-off-by: Devin Buhl --- .github/workflows/lychee.yaml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lychee.yaml b/.github/workflows/lychee.yaml index eae972dd..ffefefd8 100644 --- a/.github/workflows/lychee.yaml +++ b/.github/workflows/lychee.yaml @@ -20,11 +20,27 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Scan for broken links - uses: lycheeverse/lychee-action@v1 - with: - args: --verbose --no-progress --exclude-mail './**/*.md' - output: /tmp/results.md + - 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 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_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 - name: Find Link Checker Issue id: find-issue