Update GTFS static files #164
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
# Simple workflow for deploying static content to GitHub Pages | |
name: Update GTFS static files | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 7 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
npm install | |
npm run getGtfs | |
git config user.name DaviidMM | |
git config user.email dmuleromerino@gmail.com | |
git add gtfs-files | |
git diff --quiet && git diff --staged --quiet || git commit -m "[bot] Update GTFS static files" | |
git push origin main |