Skip to content

Commit cc95f4a

Browse files
committed
Update GH action
1 parent cd8a99a commit cc95f4a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main-actions.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ jobs:
5151
echo "Generated Document: ${{ steps.oai.outputs.generated }}"
5252
5353
$json = Get-Content -Path ${{ steps.oai.outputs.generated }} | ConvertFrom-Json
54-
5554
$result = $json.openapi -eq "3.0.1"
56-
echo $result
55+
echo "Check result: $result"

actions/build-openapi/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ steps:
4747
uses: azure-functions-openapi-extension/actions/build-openapi@v1
4848
with:
4949
functionAppPath: 'bin/Debug/net6.0'
50-
requestUri: 'http://localhost:7071/api/swagger.json'
50+
requestUri: 'http://localhost:7071/api/openapi/v3.json'
5151
documentPath: 'generated'
52-
documentName: 'swagger.json'
52+
documentName: 'openapi.json'
5353
delay: '10'
5454
isRemote: 'false'
5555

@@ -58,6 +58,7 @@ steps:
5858
run: |
5959
echo "Generated Document: ${{ steps.oai.outputs.generated }}"
6060
61-
Get-Content -Path ${{ steps.oai.outputs.generated }}
61+
$json = Get-Content -Path ${{ steps.oai.outputs.generated }} | ConvertFrom-Json
62+
$result = $json.openapi -eq "3.0.1"
63+
echo "Check result: $result"
6264
```
63-

0 commit comments

Comments
 (0)