WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

fix DocBuilder errors #79

fix DocBuilder errors

fix DocBuilder errors #79

Workflow file for this run

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 }}