Skip to content

Commit

Permalink
Check in schedule_vs_realtime_all_day_types_routes.json using gha-git…
Browse files Browse the repository at this point in the history
…-credentials action
  • Loading branch information
KyleDolezal committed Feb 7, 2024
1 parent a8735e1 commit 8577132
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/download-data.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: download-data

on:
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:
push:
branches:
- test_commit_routes

jobs:
download-data-json:
Expand All @@ -19,15 +15,10 @@ jobs:
wget \
https://chn-ghost-buses-public.s3.us-east-2.amazonaws.com/frontend_data_files/schedule_vs_realtime_all_day_types_routes.json \
-O src/Routes/schedule_vs_realtime_all_day_types_routes.json
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "update data.json and schedule_vs_realtime_all_day_types_routes.json" -a
git push origin main:main



git commit -m 'Add downloaded file'

0 comments on commit 8577132

Please sign in to comment.