diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 506273a..7c9d02a 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -21,7 +21,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Create Issue From File - if: env.lychee_exit_code != 0 + if: env.exit_code != 0 uses: peter-evans/create-issue-from-file@v5 with: title: Link Checker Report diff --git a/.github/workflows/test_cache.yml b/.github/workflows/test_cache.yml index 38f2120..4dafa94 100644 --- a/.github/workflows/test_cache.yml +++ b/.github/workflows/test_cache.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - name: Lychee URL checker - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@v2 with: args: >- --cache diff --git a/README.md b/README.md index fdfe341..e974111 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,10 @@ jobs: - name: Link Checker id: lychee - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@v2 - name: Create Issue From File - if: env.lychee_exit_code != 0 + if: env.exit_code != 0 uses: peter-evans/create-issue-from-file@v5 with: title: Link Checker Report @@ -69,7 +69,7 @@ Here is how to pass the arguments. ```yml - name: Link Checker - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@v2 with: # Check all markdown, html and reStructuredText files in repo (default) args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' @@ -101,7 +101,7 @@ In order to mitigate issues regarding rate limiting or to reduce stress on exter restore-keys: cache-lychee- - name: Run lychee - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@v2 with: args: "--base . --cache --max-cache-age 1d ." ``` @@ -121,7 +121,7 @@ If you need more control over when caches are restored and saved, you can split restore-keys: cache-lychee- - name: Run lychee - uses: lycheeverse/lychee-action@v1 + uses: lycheeverse/lychee-action@v2 with: args: "--base . --cache --max-cache-age 1d ." @@ -194,7 +194,7 @@ For example: ```yml - name: Link Checker - uses: lycheeverse/lychee-action@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621 # for v1.10.0 + uses: lycheeverse/lychee-action@7da8ec1fc4e01b5a12062ac6c589c10a4ce70d67 # for v2.0.0 ``` ## Credits diff --git a/action.yml b/action.yml index 55e427e..97f42ec 100644 --- a/action.yml +++ b/action.yml @@ -99,7 +99,7 @@ runs: # Remove the downloaded archive and any unnecessary files after installation rm -f "${{ steps.lychee-setup.outputs.filename }}" shopt -s extglob - rm -f lychee*!(lychee-bin|lychee-lib) + rm -f lychee!(*-bin|*-lib|*.toml) shell: bash - name: Run Lychee