Repository navigation
Fixes to CI tasks #10
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 Templates | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| generate-templates: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Generate templates | |
| env: | |
| OUTPUT_DIRECTORY: ${{ github.workspace }}/api/generated | |
| TEMPLATES_DIRECTORY: ${{ github.workspace }}/api/templates | |
| run: cargo build --package markers | |
| - name: Commit and push | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| default_author: github_actions | |
| add: "api/generated" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |