tape: Remove config auto-update #16
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: Build Definitions File | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Build definitions JSON | |
run: | | |
./Resources/build-full-definition './Definitions' './definitions.json' | |
- name: Set up git user | |
run: | | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
- name: Commit if there are changes then push | |
run: | | |
git add './definitions.json' | |
git diff-index --quiet HEAD || git commit --message 'Updated definitions file' | |
git push |