forked from Azure/azure-functions-openapi-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
54 lines (50 loc) · 1.29 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: OpenAPI Generator from Azure Functions
author: Microsoft
description: Generates OpenAPI document from Azure Functions app
branding:
icon: file-text
color: blue
inputs:
functionAppPath:
description: Path for the compiled Function app
required: false
default: 'bin/Debug/net6.0'
requestUri:
description: URI to generate the OpenAPI document
required: false
default: 'http://localhost:7071/api/swagger.json'
documentPath:
description: Path to store the generated OpenAPI document
required: false
default: 'generated'
documentName:
description: Name of the OpenAPI document
required: false
default: 'swagger.json'
delay:
description: Delay in seconds to start the Function app
required: false
default: '30'
isRemote:
description: Value indicating whether the Function app runs remotely or not
required: false
default: 'false'
outputs:
generated:
description: Path to the generated OpenAPI document
runs:
using: docker
image: Dockerfile
args:
- -FunctionAppPath
- ${{ inputs.functionAppPath }}
- -RequestUri
- ${{ inputs.requestUri }}
- -DocumentPath
- ${{ inputs.documentPath }}
- -DocumentName
- ${{ inputs.documentName }}
- -Delay
- ${{ inputs.delay }}
- -IsRemote
- ${{ inputs.isRemote }}