Skip to content

Build on branch save_downloaded_files #20

Build on branch save_downloaded_files

Build on branch save_downloaded_files #20

Workflow file for this run

name: download-data
on:
push:
branches:
- 'save_downloaded_files'
schedule:
# Run everyday at 2:00pm CST which is 7:00pm UTC
- cron: 0 19 * * *
# 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 data
uses: ./.github/actions/download-from-s3
with:
file-path: data.json
- name: download schedule vs realtime
uses: ./.github/actions/download-from-s3
with:
file-path: schedule_vs_realtime_all_day_types_routes.json
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- run: |
git add .
git commit -m 'Add updated route data that was downloaded from s3'
git push origin save_downloaded_files