Add job for viewing cache content

This commit is contained in:
mtkennerly 2022-10-31 11:44:59 +08:00
parent 811360786b
commit a5f8e4d51f
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408

21
.github/workflows/view-cache.yaml vendored Normal file
View file

@ -0,0 +1,21 @@
on:
workflow_dispatch: ~
name: View cache
jobs:
view-cache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/cache@v3
with:
path: data/wiki-meta-cache.yaml
key: wiki-meta-cache-v2-${{ github.run_id }}
restore-keys: |
wiki-meta-cache-v2
- name: View cache content
run: |
cat data/wiki-meta-cache.yaml