Update google-fonts index #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Update google-fonts index | |
on: | |
push: | |
check_run: | |
schedule: | |
- cron: "30 23 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: "${{ github.repository }}" | |
ref: 'mirror' | |
- name: Restore | |
id: cache-primes-restore | |
uses: actions/cache/restore@v4 | |
with: | |
key: ${{ runner.os }}-primes | |
path: | | |
fonts-main | |
- name: Install imagemagick and file | |
run: sudo apt-get update -qq && sudo apt-get install -qq imagemagick file | |
- name: generate index and previews | |
run: | | |
./update.sh | |
git config --global user.email "${{github.repository_owner}}@users.noreply.github.com" | |
git config --global user.name "fnt index" | |
git add OFL.xz APACHE.xz || : | |
git status -s -b -u | |
if git commit -m $(date -Im); then | |
git push | |
fi | |
- name: Save | |
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 |