Convert userprefs to a json file instead of header file which has to … #5
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: Generate UsersPrefs JSON manifest | |
on: | |
push: | |
paths: | |
- userPrefs.h | |
branches: | |
- master | |
jobs: | |
generate-userprefs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Clang | |
run: sudo apt-get install -y clang | |
- name: Install trunk | |
run: curl https://get.trunk.io -fsSL | bash | |
- name: Generate userPrefs.jsom | |
run: python3 ./bin/build-userprefs-json.py | |
- name: Trunk format json | |
run: trunk format userPrefs.json | |
- name: Commit userPrefs.json | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git add userPrefs.json | |
git commit -m "Update userPrefs.json" | |
git push |