Update Decode Output #26
This file contains hidden or 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 Decode Output | |
| on: | |
| schedule: | |
| - cron: '5 */3 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| ref: key-gen | |
| - name: Generate JSON | |
| working-directory: scripts/decoder | |
| run: | | |
| npm install | |
| npm start | |
| - name: Commit generated JSON | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "github-actions@github.com" | |
| git add scripts/decoder/generated/kai.json | |
| git commit -m "Update generated kai.json" || exit 0 | |
| git push | |