google #840
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: google | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
prepare: | |
uses: metanorma/ci/.github/workflows/prepare-rake.yml@main | |
import: | |
runs-on: ubuntu-latest | |
needs: prepare | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ needs.prepare.outputs.default-ruby-version }} | |
bundler-cache: true | |
- name: Install otfinfo | |
run: | | |
sudo apt-get update | |
sudo apt-get install lcdf-typetools | |
- name: Cache Google repo | |
uses: actions/cache@v3 | |
with: | |
path: "~/.fontist/google/fonts" | |
key: key2 | |
- name: Setup fontist config | |
run: bundle exec fontist config set read_timeout 60 | |
- name: Import new fonts | |
run: bundle exec fontist import google --formulas_path Formulas -n 100 -v | |
- uses: EndBug/add-and-commit@v7 | |
with: | |
add: Formulas/google | |
default_author: github_actions | |
message: 'Update formulas for Google Fonts' |