Renew CI #46
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: Renew CI | |
on: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
renew: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codes | |
uses: actions/checkout@v3 | |
- name: Renew | |
run: | | |
echo $(date '+%Y-%m-%d %H:%M:%S') > last_renew_time.txt | |
- name: push changes to remote | |
run: | | |
git config --global user.name "renew" | |
git config --global user.email "[email protected]" | |
git add last_renew_time.txt | |
git commit -m "Renew" | |
git push | |