add riss #2
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 files | |
on: | |
schedule: | |
- cron: '30 */2 * * *' | |
push: | |
branches: | |
- main | |
# To run this workflow manually from GitHub GUI | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Get the latest READMEs | |
run: make readme-update | |
- name: Commit and push if there are changes | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "bot" | |
git diff --quiet || (git add -u && git commit -m "Update READMEs") | |
git push |