From 197ae9069f28e60f5b9f0bb942f30214bd648865 Mon Sep 17 00:00:00 2001 From: "Daniel Doubrovkine (dB.)" Date: Mon, 27 Dec 2021 17:23:52 +0000 Subject: [PATCH] Upgrade and fix link checker to 1.2. (#1811) Signed-off-by: dblock --- .github/workflows/links.yml | 14 ++++---------- .lycheeexclude => .lychee.excludes | 0 2 files changed, 4 insertions(+), 10 deletions(-) rename .lycheeexclude => .lychee.excludes (100%) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index f256460d376..21fb7ab9086 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -9,17 +9,11 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Load Excludes - run: | - LYCHEE_EXCLUDE=$(sed -e :a -e 'N;s/\n/ /;ta' .lycheeexclude) - echo "LYCHEE_EXCLUDE=$LYCHEE_EXCLUDE" >> $GITHUB_ENV - - name: lychee Link Checker id: lychee - uses: lycheeverse/lychee-action@master + uses: lycheeverse/lychee-action@v1.2.0 with: - args: --accept=200,403,429 --exclude ${{ env.LYCHEE_EXCLUDE }} --exclude-mail "**/*.html" "**/*.md" "**/*.txt" "**/*.json" + args: --accept=200,403,429 --exclude-mail **/*.html **/*.md **/*.txt **/*.json --exclude-file .lychee.excludes + fail: true env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Fail if there were link errors - run: exit ${{ steps.lychee.outputs.exit_code }} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.lycheeexclude b/.lychee.excludes similarity index 100% rename from .lycheeexclude rename to .lychee.excludes