-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (42 loc) · 1.47 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: "EchoesHQ Deployments Action"
author: "EchoesHQ"
description: "Declare deployments and notify their status to Echoes."
inputs:
deliverables:
description: "Newline-separated list of deliverables the deployment contains (e.g., microservice name, application name)..."
required: false
commits:
description: "Newline-separated list of commits SHA shipped as part of the deployment. Defaults to listing commits between the last 2 tags or as a last fallback $GITHUB_SHA."
required: false
version:
description: "Version being deployed."
required: false
url:
description: "URL related to the deployment: URL to a tag, to an artefact..."
required: false
action-type:
description: "Type of action to take: posting a deployment or posting the status of a deployment"
required: false
default: "post-deploy"
status:
description: "Status of the deployment: failure or success."
required: true
deployment-id:
description: "ID of the deployment."
required: true
outputs:
deployment_id:
description: "The deployment ID created by Echoes."
runs:
using: "docker"
image: "Dockerfile"
args:
# to avoid having invalid arguments in getopts we artificially introduce a space (trimmed later on)
- -t ${{ inputs.action-type }}
- -v ${{ inputs.version }}
- -d ${{ inputs.deliverables }}
- -c ${{ inputs.commits }}
- -u ${{ inputs.url }}
- -s ${{ inputs.status }}
- -i ${{ inputs.deployment-id }}