-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download ridership data from s3 and commit to repo
- Loading branch information
1 parent
f4b9660
commit ff6b15a
Showing
1 changed file
with
30 additions
and
0 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,30 @@ | ||
name: download-ridership-data | ||
|
||
on: | ||
schedule: | ||
# Run monthly at 2:00pm CST which is 7:00pm UTC | ||
- cron: 30 19 1 * * | ||
push: | ||
branches: | ||
- save-ridership-file | ||
|
||
# Allows the workflow to be run manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
download-data-json: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: download ridership data | ||
uses: ./.github/actions/download-from-s3 | ||
with: | ||
file-path: cta_ridership_data_day_type_summary.json | ||
|
||
- uses: oleksiyrudenko/gha-git-credentials@v2-latest | ||
with: | ||
token: '${{ secrets.GITHUB_TOKEN }}' | ||
- run: | | ||
git add . | ||
git commit -m 'Add updated ridership data that was downloaded from s3' | ||
git push origin save_downloaded_files |