In shared-overwrite/.github/workflows/mt-download-data.yml, let's also trigger mt-sync-code-data.yml if new file was just downloaded by shared-opt-dir/agency-parser/download.sh (even if current data is not outdated). To know that you can check for the MT_SKIP_PUSH_COMMIT environment variable to be false.
So basically in pseudo code:
if MT_SKIP_PUSH_COMMIT==true AND ./agency-parser/check_data_outdated.sh DO
nothing
ELSE
trigger workflow
END
In
shared-overwrite/.github/workflows/mt-download-data.yml, let's also triggermt-sync-code-data.ymlif new file was just downloaded byshared-opt-dir/agency-parser/download.sh(even if current data is not outdated). To know that you can check for theMT_SKIP_PUSH_COMMITenvironment variable to be false.So basically in pseudo code: