Auto commit #12753
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: Auto commit | |
on: | |
schedule: | |
- cron: '15 4,8,15 * * 0-2' | |
- cron: '0 8-20 * * 1-5' | |
- cron: '10 3-11 4-20 * *' | |
jobs: | |
auto_commit: | |
name: 'Auto push a commit to my repo' | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create sample file with just timestamp | |
run: date +%s >> report.txt | |
- name: Commit file | |
run: | | |
git config --global user.name 'Automated Suesi 404' | |
git config --global user.email 'suesitran@users.noreply.github.com' | |
git add report.txt | |
git commit -am "Automated report" | |
git push |