-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathaction.yaml
41 lines (38 loc) · 1.27 KB
/
action.yaml
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
name: 'PipeCD Plan Preview'
description: 'Comment PipeCD PlanPreview result on GitHub pull request'
author: 'PipeCD team'
inputs:
address:
description: 'The address of PipeCD control-plane.'
required: true
api-key:
description: 'The API key with READ_WRITE role used by pipectl while communicating with PipeCD control-plane.'
required: true
token:
description: 'The GITHUB_TOKEN secret used to send comment on pull request.'
required: true
timeout:
description: 'Maximum amount of time to run. Default is 5m.'
required: false
default: 5m
piped-handle-timeout:
description: 'Maximum amount of time to wait for piped handle the plan preview. Default is 5m.'
required: false
default: 5m
sort-label-keys:
description: 'The application label keys to sort the results by. If not specified, the results will be sorted by only PipedID and ApplicationName.'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- address=${{ inputs.address }}
- api-key=${{ inputs.api-key }}
- token=${{ inputs.token }}
- timeout=${{ inputs.timeout }}
- piped-handle-timeout=${{ inputs.piped-handle-timeout }}
- sort-label-keys=${{ inputs.sort-label-keys }}
branding:
icon: 'eye'
color: 'green'