-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1df827
commit d2459b9
Showing
7 changed files
with
73 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: MT download data | ||
on: | ||
workflow_dispatch: # manual | ||
schedule: | ||
- cron: '0 18 * * 1,3,5' # At 18:00 on Monday, Wednesday, and Friday # https://crontab.guru/#0_18_*_*_1,3,5 | ||
# gh workflow run mt-download-data.yml --ref mmathieum | ||
# gh run list --workflow=mt-download-data.yml | ||
# gh run watch ; gh browse --branch mmathieum | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
# git commit & push | ||
MT_ORG_GIT_COMMIT_ON: ${{ secrets.MT_ORG_GIT_COMMIT_ON }} | ||
MT_ORG_GIT_COMMIT_OFF: ${{ secrets.MT_ORG_GIT_COMMIT_OFF }} | ||
MT_GIT_COMMIT_ON: ${{ secrets.MT_GIT_COMMIT_ON }} | ||
MT_GIT_COMMIT_OFF: ${{ secrets.MT_GIT_COMMIT_OFF }} | ||
jobs: | ||
MT-DOWNLOAD-DATA-JOB: | ||
if: ${{ ! contains(github.repository, '-bike-') && ! endsWith(github.repository, '/mtransit-for-android') }} | ||
name: "MT Download Data" | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: MT check out main repository code (no submodules) | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: mmathieum | ||
submodules: true # required to set right token | ||
token: ${{ secrets.MT_PAT }} | ||
fetch-depth: 0 # fetch all (not required util release build) | ||
- name: MT check out submodules | ||
run: ./checkout_submodules.sh | ||
- name: MT setup MT_GIT_BRANCH env | ||
if: github.event_name != 'pull_request' | ||
run: | | ||
echo "MT_GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
- name: MT code sync | ||
# if: github.event_name != 'pull_request' | ||
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} | ||
run: ./commons/code_sync.sh | ||
- name: MT code setup | ||
run: ./commons/code_setup.sh | ||
- name: MT commit code change | ||
run: ./commit_code_change.sh | ||
- name: MT download data | ||
timeout-minutes: 10 | ||
run: ./agency-parser/download.sh | ||
- name: MT push commits | ||
run: ./push_commits.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule commons
updated
14 files
Submodule parser
updated
6 files