From 62d4b3ab0d5c59b3a0815af3d7d150cf6a2621c3 Mon Sep 17 00:00:00 2001 From: "FC (Fay) Stegerman" Date: Sun, 3 Sep 2023 00:07:35 +0000 Subject: [PATCH] feature graphic: only run on title.txt changes & clean png (#1494) --- .github/workflows/generate-feature-graphic.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate-feature-graphic.yml b/.github/workflows/generate-feature-graphic.yml index e2dd37a40..d3c67c796 100644 --- a/.github/workflows/generate-feature-graphic.yml +++ b/.github/workflows/generate-feature-graphic.yml @@ -4,7 +4,7 @@ on: branches: - main paths: - - 'fastlane/**' + - 'fastlane/**/title.txt' jobs: generate-feature-graphic: runs-on: ubuntu-latest @@ -13,7 +13,7 @@ jobs: - name: Install requirements run: | sudo apt-get update - sudo apt-get install optipng + sudo apt-get install optipng mat2 # Install 200 weight versions of relevant Noto (to use for languages not supported by Lexend Deca) sudo apt-get install fonts-noto-extra fonts-noto-cjk-extra # Custom fonts @@ -48,6 +48,8 @@ jobs: convert featureGraphic.svg images/featureGraphic.png # Optimize .png optipng images/featureGraphic.png + # Remove metadata (timestamps) from .png + mat2 --inplace images/featureGraphic.png # Remove temporary .svg rm featureGraphic.svg popd