shared-overwrite/.github/workflows/mt-check-data-outdated.yml
we need to read the times from app-android/res-*/values*_gtfs_rts_values_gen.xml files directly instead of having to use ./.github/actions/setup and then agency-parser/check_data_outdated.sh which represents 90% of the workflow run duration.
Also would try to use Github Linux runners built in tools (grep, sed...) instead of having to install "libxml2-utils" package to use "xmllint".
Like we were doing here:
|
grep -E "<integer name=\"[^\"]*_gtfs_rts_last_departure_in_sec\">[0-9]+</integer>" "$FILE" 2>/dev/null | sed 's/[^[:digit:]]*\([[:digit:]]\+\).*/\1/' || echo ""; |
Let's make this workflow as fast as possible since it's meant to run (almost) daily.
For example: actions/checkout should only load the minimum amount of data.
shared-overwrite/.github/workflows/mt-check-data-outdated.ymlwe need to read the times from
app-android/res-*/values*_gtfs_rts_values_gen.xmlfiles directly instead of having to use./.github/actions/setupand thenagency-parser/check_data_outdated.shwhich represents 90% of the workflow run duration.Also would try to use Github Linux runners built in tools (grep, sed...) instead of having to install "libxml2-utils" package to use "xmllint".
Like we were doing here:
commons/shared-opt-dir/agency-parser/check_data_outdated.sh
Line 33 in 23b210f
Let's make this workflow as fast as possible since it's meant to run (almost) daily.
For example:
actions/checkoutshould only load the minimum amount of data.