Skip to content

Commit 5232d94

Browse files
update openapi source file location (#408)
1 parent d308efd commit 5232d94

File tree

15 files changed

+22224
-5
lines changed

15 files changed

+22224
-5
lines changed

.github/workflows/generate_api_pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: mkdir -p generator/openapi
2828

2929
- name: Download openapi.yml
30-
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"
30+
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"
3131

3232
- name: Install Go
3333
uses: actions/setup-go@v3
@@ -49,13 +49,13 @@ jobs:
4949
- name: Generate api pages for netbird main openapi definition
5050
run: npx ts-node generator/index.ts gen --input generator/openapi/expanded.yml --output src/pages/ipa/resources
5151

52-
- name: Check git diff and send to output
52+
- name: Check git diff and untracked files
5353
id: git_diff
5454
run: |
55-
if git --no-pager diff --exit-code; then
56-
echo "changed=false" >> "$GITHUB_OUTPUT"
57-
else
55+
if [ -n "$(git status --porcelain)" ]; then
5856
echo "changed=true" >> "$GITHUB_OUTPUT"
57+
else
58+
echo "changed=false" >> "$GITHUB_OUTPUT"
5959
fi
6060
6161
- name: Commit and push changes

0 commit comments

Comments
 (0)