name: update-codes on: workflow_dispatch: schedule: - cron: '0 0 * * *' jobs: update: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Dependencies run: npm install - name: Update Codes run: npm run update-codes - name: Commit Changes run: | git config user.name github-actions git config user.email github-actions@github.com git add . git diff-index --quiet HEAD || git commit -m "[Bot] Update codes" git push