weekly deploy #103
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: "weekly deploy" | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
# friday 08:00, scheduler has delay | |
- cron: "59 23 * * 4" | |
- cron: "12 00 * * 5" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update | |
run: | | |
date "+%Y-%m-%d %H:%M:%S" >> actions.txt | |
today=`date +"%Y-%m-%d"` | |
git config user.name github-actions | |
git config user.email [email protected] | |
git pull | |
git add . | |
git commit -m "[${today}] done" | |
git push |