shell action #21424
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: 'shell action' | |
on: | |
schedule: | |
- cron: '20 * * * *' | |
jobs: | |
bot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout codes' | |
uses: actions/checkout@v2 | |
- name: 'run' | |
run: bash run.sh | |
- name: 'date' | |
run: echo `date` > date.log | |
- name: Commit and push if changed | |
run: | | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "Geek-007" | |
git add -A | |
git commit -m "Updated" || exit | |
git push |