Skip to content

Commit

Permalink
Test lychee cache (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
mre committed Mar 7, 2023
1 parent a4ca7a7 commit 8aac478
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/test_cache.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 8aac478

Please sign in to comment.