From 9e72070ada4262174e87354cc9dd08f9c4617678 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:04:50 +0000 Subject: [PATCH 1/3] Initial plan From 50ff80f311d8237d0d22f6b39b34624deba7dfa0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:06:04 +0000 Subject: [PATCH 2/3] fix: trigger mt-sync-code-data.yml if new data downloaded in mt-download-data.yml Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/f804f921-b383-490a-bb2e-acd65ebb600a Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com> --- shared-overwrite/.github/workflows/mt-download-data.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared-overwrite/.github/workflows/mt-download-data.yml b/shared-overwrite/.github/workflows/mt-download-data.yml index 9b135456..d95c4ee9 100644 --- a/shared-overwrite/.github/workflows/mt-download-data.yml +++ b/shared-overwrite/.github/workflows/mt-download-data.yml @@ -58,13 +58,13 @@ jobs: - name: MT push commits run: ./push_commits.sh - - name: MT check if data is outdated & trigger sync + - name: MT check if data is outdated or new data downloaded & trigger sync continue-on-error: true run: | - if ./agency-parser/check_data_outdated.sh; then - echo ">> Data is up-to-date."; + if [[ "${MT_SKIP_PUSH_COMMIT}" == true ]] && ./agency-parser/check_data_outdated.sh; then + echo ">> No new data downloaded and data is up-to-date. No sync needed."; else - echo ">> Data is outdated. Triggering mt-sync-code-data.yml workflow (skip download data)..."; + echo ">> New data downloaded or data is outdated. Triggering mt-sync-code-data.yml workflow (skip download data)..."; gh workflow run mt-sync-code-data.yml -f skip-download-data=true fi env: From 9b9c00e3394ac866d03f885a8e10e84e1ff147ce Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Apr 2026 21:18:50 +0000 Subject: [PATCH 3/3] fix: check MT_SKIP_PUSH_COMMIT != false to handle unset case Agent-Logs-Url: https://github.com/mtransitapps/commons/sessions/5c465036-6f2d-4b6e-b79a-ed49d2167bcc Co-authored-by: mmathieum <177998+mmathieum@users.noreply.github.com> --- shared-overwrite/.github/workflows/mt-download-data.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-overwrite/.github/workflows/mt-download-data.yml b/shared-overwrite/.github/workflows/mt-download-data.yml index d95c4ee9..ac504183 100644 --- a/shared-overwrite/.github/workflows/mt-download-data.yml +++ b/shared-overwrite/.github/workflows/mt-download-data.yml @@ -61,7 +61,7 @@ jobs: - name: MT check if data is outdated or new data downloaded & trigger sync continue-on-error: true run: | - if [[ "${MT_SKIP_PUSH_COMMIT}" == true ]] && ./agency-parser/check_data_outdated.sh; then + if [[ "${MT_SKIP_PUSH_COMMIT}" != false ]] && ./agency-parser/check_data_outdated.sh; then echo ">> No new data downloaded and data is up-to-date. No sync needed."; else echo ">> New data downloaded or data is outdated. Triggering mt-sync-code-data.yml workflow (skip download data)...";