Single aggregate docs website with MultiDocumenter #15
Workflow file for this run
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: SiennaDocs Format Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.julia-version' | |
| - 'SiennaDocs/**' | |
| - '.github/workflows/sienna-docs-format.yml' | |
| pull_request: | |
| paths: | |
| - '.julia-version' | |
| - 'SiennaDocs/**' | |
| - '.github/workflows/sienna-docs-format.yml' | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Read Julia version | |
| id: julia-version | |
| run: echo "version=$(tr -d '[:space:]' < .julia-version)" >> "$GITHUB_OUTPUT" | |
| - uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: ${{ steps.julia-version.outputs.version }} | |
| - name: Format SiennaDocs sources | |
| working-directory: SiennaDocs | |
| run: julia -e 'include("scripts/formatter/formatter_code.jl")' | |
| - uses: reviewdog/action-suggester@v1 | |
| if: github.event_name == 'pull_request' | |
| with: | |
| tool_name: JuliaFormatter | |
| fail_on_error: true | |
| - name: Format check | |
| run: | | |
| julia -e ' | |
| out = Cmd(`git diff --name-only`) |> read |> String | |
| if out == "" | |
| exit(0) | |
| else | |
| @error "Some files have not been formatted" | |
| write(stdout, out) | |
| exit(1) | |
| end' |