Skip to content

mt-download-data.yml > trigger mt-sync-code-data.yml if new data and data available outdated #482

@mmathieum

Description

@mmathieum
  • Change this CI workflow: shared-overwrite/.github/workflows/mt-download-data.yml
  • Add step(s) in the job to check if current data in app-android/src/main/(res-*/raw/*_gtfs_schedule_service_dates|values/*_gtfs_rts_values_gen.xml) is outdated and current data available in agency-parser/archive.
  • If yes, triggers gh workflow run mt-sync-code-data.yml on same repo.

Look into these files to get the last departure in seconds:

  • app-android/src/main/res-current/raw/current_gtfs_schedule_service_dates
  • app-android/src/main/res-current/values/current_gtfs_rts_values_gen.xml
  • app-android/src/main/res-next/raw/next_gtfs_schedule_service_dates
  • app-android/src/main/res-next/values/next_gtfs_rts_values_gen.xml

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions