forked from alexmyczko/fnt
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1017 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update deb822 style cache files
on:
push:
check_run:
schedule:
- cron: "30 23 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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
git config --global user.email "[email protected]"
git config --global user.name "fnt index"
git add OFL.xz APACHE.xz || :
if git commit -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