From 5a31735a0441796c6d8cfef1d50ef405588d65b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20M=C3=A9a?= Date: Wed, 22 Apr 2026 08:41:08 -0400 Subject: [PATCH 1/2] `mt-sync-code-data.yml` > allow image generation for Bike agencies --- shared-overwrite/.github/workflows/mt-sync-code-data.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared-overwrite/.github/workflows/mt-sync-code-data.yml b/shared-overwrite/.github/workflows/mt-sync-code-data.yml index e3322f3a..2cc045cc 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: ${{ env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' }} + if: ${{ env.MT_IS_MAIN_REPO != 'true' }} run: | git add -v -A -- ':(glob)**/*.png' if git diff --staged --quiet; then @@ -205,14 +205,14 @@ jobs: # ---------- - name: MT generate images if required - if: ${{ env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' && steps.mt-check-image-gen-required.outcome == 'success' }} + if: ${{ env.MT_IS_MAIN_REPO != 'true' && steps.mt-check-image-gen-required.outcome == 'success' }} run: | ./commons/code_setup.sh; env: MT_GENERATE_IMAGES: true - name: MT commit image change (if added/updated) - if: ${{ env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' }} + if: ${{ env.MT_IS_MAIN_REPO != 'true' }} run: | git add -v -A -- ':(glob)**/*.png' if git diff --staged --quiet; then From 15dca4c49525514a6e740ef4f08d45efe7df4fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20M=C3=A9a?= Date: Wed, 22 Apr 2026 08:49:51 -0400 Subject: [PATCH 2/2] PR comment Simplify condition for image generation check --- 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 2cc045cc..01973c5b 100644 --- a/shared-overwrite/.github/workflows/mt-sync-code-data.yml +++ b/shared-overwrite/.github/workflows/mt-sync-code-data.yml @@ -165,7 +165,7 @@ jobs: - name: MT check if image generation required id: mt-check-image-gen-required continue-on-error: true - if: ${{ env.MT_IS_AGENCY_BIKE != 'true' && env.MT_IS_MAIN_REPO != 'true' }} + if: ${{ env.MT_IS_MAIN_REPO != 'true' }} run: | RESULT=$(git status --porcelain -- "app-android/src/main/res/values/gtfs_rts_values_gen.xml" | wc -l) if [ "$RESULT" -gt 0 ]; then