From 24e1ac9fe800512b33bbfeabbd5fa8c6e439f669 Mon Sep 17 00:00:00 2001 From: "Daniel Doubrovkine (dB.)" Date: Mon, 3 Jan 2022 23:03:59 +0000 Subject: [PATCH] Fix and lock link checker at lycheeverse/lychee-action@v1.2.0. (#109) * Fix and lock link checker at lycheeverse/lychee-action@v1.2.0. Signed-off-by: dblock * Don't check e-mail addresses. Signed-off-by: dblock --- .github/workflows/links.yml | 21 +++++++-------------- .lychee.excludes | 1 + 2 files changed, 8 insertions(+), 14 deletions(-) create mode 100644 .lychee.excludes diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 2a960c343..a52a751c5 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -1,23 +1,16 @@ name: Link Checker -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] -jobs: - linkchecker: +on: [push, pull_request] +jobs: + check: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - - name: lychee Link Checker - id: lychee - uses: lycheeverse/lychee-action@master + - name: Lychee Link Checker + uses: lycheeverse/lychee-action@v1.2.0 with: - args: --accept=200,403,429 --exclude=https://www.envoyproxy.io/ "**/*.html" "**/*.md" "**/*.txt" + 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 }} diff --git a/.lychee.excludes b/.lychee.excludes new file mode 100644 index 000000000..08cb9c714 --- /dev/null +++ b/.lychee.excludes @@ -0,0 +1 @@ +https://www.envoyproxy.io/ \ No newline at end of file