Update README #302
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 README | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at midnight | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup JQ | |
run: sudo apt-get install jq | |
- name: Setup CURL | |
run: sudo apt-get install curl | |
- name: Run update script | |
run: bash ./update.sh | |
- name: Commit and push if changed | |
run: | | |
git diff | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git diff --cached --quiet || git commit -m "Automatically update README" | |
git push |