update openapi source file location (#408)

This commit is contained in:
Pascal Fischer
2025-08-07 14:08:57 +02:00
committed by GitHub
parent d308efdd6e
commit 5232d9442c
15 changed files with 22224 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ jobs:
run: mkdir -p generator/openapi
- name: Download openapi.yml
run: curl -L -o generator/openapi/openapi.yml "https://raw.githubusercontent.com/netbirdio/netbird/v${{ steps.semver_parser.outputs.fullversion }}/management/server/http/api/openapi.yml"
run: curl -L -o generator/openapi/openapi.yml "https://raw.githubusercontent.com/netbirdio/netbird/v${{ steps.semver_parser.outputs.fullversion }}/shared/management/http/api/openapi.yml"
- name: Install Go
uses: actions/setup-go@v3
@@ -49,13 +49,13 @@ jobs:
- name: Generate api pages for netbird main openapi definition
run: npx ts-node generator/index.ts gen --input generator/openapi/expanded.yml --output src/pages/ipa/resources
- name: Check git diff and send to output
- name: Check git diff and untracked files
id: git_diff
run: |
if git --no-pager diff --exit-code; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
if [ -n "$(git status --porcelain)" ]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
fi
- name: Commit and push changes