fix DocBuilder errors #79
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: build | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal | |
| - name: Bundle example OpenAPI | |
| run: dotnet run --project src/Catdocs/Catdocs.csproj bundle --file examples/bundle-pipeline/OpenApi.yaml -v 3 --format yaml --output examples/bundle-pipeline/output.yaml | |
| - name: Configure Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Example pipeline check | |
| id: check_example_changes | |
| run: | | |
| git diff --exit-code --quiet examples/bundle-pipeline/output.yaml || echo "example_pipeline_changed" | |
| - name: Commit changes | |
| if: steps.check_example_changes.outputs.changes == 'example_pipeline_changed' | |
| run: | | |
| git add examples/bundle-pipeline/output.yaml | |
| git commit -m "Add generated output.yaml file" | |
| - name: Push changes | |
| if: steps.check_example_changes.outputs.changes == 'example_pipeline_changed' | |
| run: git push | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |