Init #19
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: Init | |
on: | |
schedule: | |
- cron: '0 4 1-25 12 *' # Every day from December 1st to December 25th at 4am UTC | |
jobs: | |
init: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Init day | |
run: make init year=$(date +%Y) day=$(date +%d) | |
- uses: fregante/setup-git-user@v2 | |
- name: Commit folder | |
run: | | |
YEAR=$(date +%Y) | |
DAY=$(date +%d) | |
git add . | |
git commit -m "feat($YEAR): init day $DAY" | |
git push |