From 6ff6c1a390d3991a7864eec55f218b61838d5438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20M=C3=A9a?= Date: Fri, 17 Apr 2026 16:43:47 -0400 Subject: [PATCH 1/2] Keep PNGs in repo > follow-up to #680 - #677 --- .../.github/workflows/mt-sync-code-data.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shared-overwrite/.github/workflows/mt-sync-code-data.yml b/shared-overwrite/.github/workflows/mt-sync-code-data.yml index ce79e81e..5cc0d1e8 100644 --- a/shared-overwrite/.github/workflows/mt-sync-code-data.yml +++ b/shared-overwrite/.github/workflows/mt-sync-code-data.yml @@ -112,6 +112,19 @@ jobs: with: code-sync: ${{ github.ref == format('refs/heads/{0}', env.MT_DEFAULT_BRANCH_NAME) }} + - name: MT commit image change (if added/updated) + if: ${{ github.ref == format('refs/heads/{0}', env.MT_DEFAULT_BRANCH_NAME) && env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' }} + run: | + git add -v -A -- ':(glob)**/*.png' + if git diff --staged --quiet; then + echo "No new images to commit." + else + echo "Committing generated images."; + git config user.name "$MT_BOT_USER_NAME" + git config user.email "$MT_BOT_USER_EMAIL" + git commit -m "CI: update generated images" + fi + - name: MT commit code change if: ${{ github.ref == format('refs/heads/{0}', env.MT_DEFAULT_BRANCH_NAME) }} run: ./commit_code_change.sh From 3382c481be1f28c5d2bfab3287a7602a91968741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20M=C3=A9a?= Date: Fri, 17 Apr 2026 16:46:33 -0400 Subject: [PATCH 2/2] plus --- shared-overwrite/.github/workflows/mt-sync-code-data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-overwrite/.github/workflows/mt-sync-code-data.yml b/shared-overwrite/.github/workflows/mt-sync-code-data.yml index 5cc0d1e8..ad65df0e 100644 --- a/shared-overwrite/.github/workflows/mt-sync-code-data.yml +++ b/shared-overwrite/.github/workflows/mt-sync-code-data.yml @@ -113,7 +113,7 @@ jobs: code-sync: ${{ github.ref == format('refs/heads/{0}', env.MT_DEFAULT_BRANCH_NAME) }} - name: MT commit image change (if added/updated) - if: ${{ github.ref == format('refs/heads/{0}', env.MT_DEFAULT_BRANCH_NAME) && env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' }} + if: ${{ env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' }} run: | git add -v -A -- ':(glob)**/*.png' if git diff --staged --quiet; then