From 8aac478accffb57894c1d3ac2ffdaeb54c1fd5b5 Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Tue, 7 Mar 2023 14:33:44 +0100 Subject: [PATCH] Test lychee cache (#187) --- .github/workflows/test_cache.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test_cache.yml diff --git a/.github/workflows/test_cache.yml b/.github/workflows/test_cache.yml new file mode 100644 index 0000000..4ec7da1 --- /dev/null +++ b/.github/workflows/test_cache.yml @@ -0,0 +1,36 @@ +on: + - repository_dispatch + - workflow_dispatch + - push + - pull_request + +jobs: + lychee-action: + runs-on: ubuntu-latest + continue-on-error: true + name: Test cache + steps: + - name: Restore lychee cache + uses: actions/cache@v3 + with: + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + + - uses: actions/checkout@v3 + + - name: Lychee URL checker + uses: lycheeverse/lychee-action@v1 + with: + args: >- + --cache + --verbose + --no-progress + './**/*.md' + './**/*.html' + # Fail the action on broken links. + # If the pipeline fails, the cache will _not_ be stored + fail: true + env: + # to be used in case rate limits are surpassed + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}