-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
46 lines (46 loc) · 1.32 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
name: 'proto api docs'
description: 'Generate swagger api docs from protobuf & push them to a s3 bucket'
branding:
icon: 'edit-3'
color: 'gray-dark'
inputs:
GIT_TOKEN:
description: 'git token to use for cloning the repository containing the protobuf files'
required: true
PROTO_REPOSITORY:
description: 'protobuf files github repository including the org name'
required: true
PROTO_BRANCH:
description: 'branch to clone'
required: true
MODULE_LIST_FILE_PATH:
description: 'path to file containing list of subdirectories of protos to clone'
required: true
AWS_S3_BUCKET:
description: 's3 bucket name'
required: true
AWS_ACCESS_KEY_ID:
description: 'aws access key id'
required: true
AWS_SECRET_ACCESS_KEY:
description: 'aws access key secret'
required: true
AWS_REGION:
description: 'aws region'
required: true
DEST_DIR:
description: 'destination s3 directory'
required: true
runs:
using: "docker"
image: 'Dockerfile'
args:
- ${{ inputs.GIT_TOKEN }}
${{ inputs.PROTO_REPOSITORY }}
${{ inputs.PROTO_BRANCH }}
${{ inputs.MODULE_LIST_FILE_PATH }}
${{ inputs.AWS_S3_BUCKET}}
${{ inputs.AWS_ACCESS_KEY_ID}}
${{ inputs.AWS_SECRET_ACCESS_KEY}}
${{ inputs.AWS_REGION}}
${{ inputs.DEST_DIR}}