Skip to content

Commit

Permalink
chore: add update-readme.yml (zoo-js#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Nov 13, 2020
1 parent a3709bb commit 941cff1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 🌈 Update README auto

on:
schedule:
- cron: "0 13 */2 * *"

jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Install
run: yarn

- name: Update data
run: node ./active-script/update-readme.js

- name: Commit and push if changed
run: |-
git diff
git config --global user.email "[email protected]"
git config --global user.name "xrkffgg"
git pull
git add -A
git commit -m "🤖 auto: updated README" || exit 0
git push

0 comments on commit 941cff1

Please sign in to comment.