-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
52 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
name: 'Deploy Configs'
description: 'Deploy configs to extraction pipelines in Cognite Data Fusion'
inputs:
api-key:
description: 'API key for authenticating with CDF'
required: false
base-url:
description: 'CDF base URL'
required: false
default: 'https://api.cognitedata.com'
token-url:
description: 'Token url to use for fetching OAuth2 tokens'
required: false
cdf-project-name:
description: 'CDF project name (only required when using OAuth2 credentials)'
required: false
scopes:
description: 'List of OAuth2 scopes (space separated)'
required: false
audience:
description: 'OAuth2 audience'
required: false
client-id:
description: 'OAuth2 client ID'
required: false
client-secret:
description: 'OAuth2 client secret'
required: false
deploy:
description: '"True" to deploy configs to CDF'
required: false
root-folder:
description: 'Root folder for recursively looking for config files. This is relative to $GITHUB_WORKSPACE'
required: true
revision-message:
description: 'Revision message in CDF. For example "github.event.head_commit.message"'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
CDF_API_KEY: ${{ inputs.api-key }}
CDF_TOKEN_URL: ${{ inputs.token-url }}
CDF_PROJECT_NAME: ${{ inputs.cdf-project-name }}
CDF_CLIENT_ID: ${{ inputs.client-id }}
CDF_CLIENT_SECRET: ${{ inputs.client-secret }}
CDF_SCOPES: ${{ inputs.scopes }}
CDF_AUDIENCE: ${{ inputs.audience }}
CDF_BASE_URL: ${{ inputs.base-url }}
CONFIG_ROOT_FOLDER: ${{ inputs.root-folder }}
CONFIG_DEPLOY: ${{ inputs.deploy }}
CONFIG_REVISION_MESSAGE: ${{ inputs.revision-message }}