Skip to content

mt-download-data.yml > trigger "sync code & data" if new data downloaded #656

@mmathieum

Description

@mmathieum

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

Metadata

Metadata

Labels

P2🔼 Priority 2: Highgithub_actionsPull requests that update GitHub Actions code

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions