Update members number #1399
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: Update members number | |
on: | |
schedule: | |
- cron: "30 15 * * *" | |
jobs: | |
update-number: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install | |
run: yarn | |
- name: Update data | |
run: node ./script/update-members.js | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Commit and push if changed | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "zoo-js-bot" | |
git pull | |
git add -A | |
git commit -m "π€ auto: updated members number" || exit 0 | |
git push |