Update Data π #229
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
name: Update Data π | |
on: | |
# schedule: | |
# - cron: '0 8 * * *' | |
workflow_dispatch: | |
jobs: | |
update-data: | |
name: Update Data | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run Update Script | |
run: npm run update-data | |
env: | |
YOUTUBE_KEY: ${{ secrets.YOUTUBE_KEY }} | |
- name: Commit and Push | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add data | |
git diff-index --quiet HEAD || git commit -m "Update data" && git push |