Make format required #7
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: Generate C++ Headers from Schema | |
| on: | |
| push: | |
| paths: | |
| - 'gnus-processing-schema.json' | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| generate-headers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: Install quicktype | |
| run: npm install -g quicktype | |
| - name: Run QuickType | |
| run: | | |
| mkdir -p generated | |
| quicktype \ | |
| --src-lang schema \ | |
| --lang cpp \ | |
| --top-level SGNSProcessing \ | |
| --code-format with-getter-setter \ | |
| --const-style west-const \ | |
| --namespace sgns \ | |
| --type-style pascal-case \ | |
| --member-style underscore-case \ | |
| --boost \ | |
| --source-style multi-source \ | |
| --include-location global-include \ | |
| --out generated/SGNSProcMain.hpp \ | |
| gnus-processing-schema.json | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "Auto-generate C++ headers from schema" | |
| title: "Auto PR: Generate headers from schema" | |
| body: | | |
| This PR was automatically generated by GitHub Actions. | |
| It contains updates to the C++ header files based on the latest schema changes. | |
| base: main | |
| branch: auto/generated-headers |