Skip to content

Commit

Permalink
cache and save?!
Browse files Browse the repository at this point in the history
  • Loading branch information
crpb committed Dec 8, 2024
1 parent 968c34c commit 1f4fcbb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
with:
repository: 'crpb/fnt'
ref: 'mirror'
- name: Restore cached Primes
id: cache-primes-restore
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-primes
path: |
fonts-main
- name: generate index
run: |
./update.sh
Expand All @@ -22,3 +29,11 @@ jobs:
if git commit --all -m $(date -Im); then
git push
fi
- name: Always Save Primes
id: cache-primes-save
if: always() && steps.cache-primes-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }}
path: |
fonts-main

0 comments on commit 1f4fcbb

Please sign in to comment.