Update #1291
This file contains hidden or 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 | |
| on: | |
| schedule: | |
| - cron: '0 3 * * *' | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - run: ./update.sh | |
| - run: | | |
| if [ -z "$(git status --porcelain)" ]; then | |
| echo "No updates!" | |
| else | |
| git config user.email "jonascarpay@gmail.com" | |
| git config user.name "Jonas Carpay" | |
| git add . | |
| git commit -m "programs.sqlite at $(date -u)" | |
| git push | |
| fi |