Skip to content

Commit

Permalink
Download ridership data from s3 and commit to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dcjohnson24 committed Feb 13, 2024
1 parent f4b9660 commit ff6b15a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/download-ridership-data.yml
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

0 comments on commit ff6b15a

Please sign in to comment.