Daily Update #385
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: Daily Update | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install | |
run: yarn | |
- name: Update | |
run: node daily.js | |
- name: Commit and push if changed | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "Turkyden" | |
git pull | |
git add -A | |
git commit -m "🤖 Auto Update Daily Motto" || exit 0 | |
git push |