From be06ca60e8ced300231ff36aa76e63d3b5a399fb Mon Sep 17 00:00:00 2001 From: Alexey Morozov Date: Sat, 9 Sep 2023 21:29:34 +0200 Subject: [PATCH] Use fontist which import formulas in batches and specify read timeout --- .github/workflows/google.yml | 5 ++++- Gemfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/google.yml b/.github/workflows/google.yml index 934334d7..0efa89c7 100644 --- a/.github/workflows/google.yml +++ b/.github/workflows/google.yml @@ -32,8 +32,11 @@ jobs: 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 + run: bundle exec fontist import google --formulas_path Formulas -n 50 - uses: EndBug/add-and-commit@v7 with: diff --git a/Gemfile b/Gemfile index 7fe288dd..d75be2a2 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -gem "fontist" +gem "fontist", github: "fontist/fontist", branch: "main" gem "rubocop", "1.5.2" gem "rubocop-performance" gem "rubocop-rails"