Group JSON API #194
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: Group JSON API | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "16" | |
- run: npm install | |
- run: npm run group-data | |
- run: | | |
git config user.name "GitHub Action" | |
git config user.email "[email protected]" | |
git add . | |
git diff --quiet && git diff --staged --quiet || git commit -m "[bot] Group JSON API" | |
git push origin main |