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