-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
53 lines (52 loc) · 1.74 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
name: Publish TechDocs
description: Generate and publish TechDocs
inputs:
publisher:
description: awsS3 | googleGcs | azureBlobStorage
required: true
credentials:
description:
Credentials required to authenticate with your publisher through the techdocs-cli
For GCS, provide the JSON service account key file, as a base64-encoded string in GOOGLE_APPLICATION_CREDENTIALS
For AWS, provide AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, delimited by a space
For Azure, provide AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET delimited by a space
required: true
bucket:
description: In case of AWS or GCS this is the bucket name. In case of Azure, the container name
required: true
entity:
description: Entity uid separated by / in namespace/kind/name order (case-sensitive). For example default/Component/myEntity
required: true
sourceDir:
description: 'Source directory for repositories containing nested documentation'
default: .
azureAccountName:
description: Azure account name, required if publisher is Azure
azureAccountKey:
description: Azure Storage Account key. Use as an alternative authentication method to the credentials input
awsRoleArn:
description: Optional AWS ARN of role to be assumed
awsEndpoint:
description: Optional AWS endpoint to send requests to
runs:
using: docker
image: Dockerfile
args:
- '-a'
- ${{ inputs.publisher }}
- '-b'
- ${{ inputs.credentials }}
- '-c'
- ${{ inputs.bucket }}
- '-d'
- ${{ inputs.entity }}
- '-e'
- ${{ inputs.sourceDir }}
- '-f'
- ${{ inputs.azureAccountName }}
- '-g'
- ${{ inputs.azureAccountKey }}
- '-h'
- ${{ inputs.awsRoleArn }}
- '-i'
- ${{ inputs.awsEndpoint }}