Skip to content

.github/workflows/update.yml #2050

.github/workflows/update.yml

.github/workflows/update.yml #2050

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: '8 18 * * *'
- cron: '8 19 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v1
- run: ./bin/update-playlist README.md
env:
YOUTUBE_PLAYLIST_ID: PLWBKAf81pmOaP9naRiNAqug6EBnkPakvY
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
- run: |
if git diff --quiet; then
exit 0
fi
git -c user.name='Anthony Sottile' -c [email protected] commit -a -m 'update playlist'
git push origin HEAD