forked from bobheadxi/deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
114 lines (96 loc) · 2.99 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: GitHub Deployment Status Management
description: GitHub action for working painlessly with deployment statuses.
author: KineticCafe
branding:
icon: bookmark
color: yellow
runs:
using: node20
main: dist/index.js
inputs:
step:
required: true
description: One of 'start', 'finish', 'deactivate-env', or 'delete-env'
token:
required: true
description: GitHub access token
default: ${{ github.token }}
env:
required: true
description: |
The name of the deployment environment in GitHub to create statuses in.
repository:
required: false
description: |
Set status for a different repository, using the format
`$owner/$repository` (optional, defaults to the current repository)
logs:
required: false
description: URL to logs
desc:
required: false
description: Description to set in status
ref:
required: false
description: The git ref to use for the deploy, defaults to `github.ref`
task:
required: false
description: The task to assign to the deployment, defaults to 'deploy'
debug:
required: false
description: Print arguments used by this action and other debug information.
default: 'false'
deployment_id:
required: false
description: |
The deployment ID to update (if specified during `start`, the deployment
will be updated instead of creating a new one)
env_url:
required: false
description: The environment URL (for `finish` only)
status:
required: false
description: The deployment status (for `finish` only)
override:
required: false
description: |
Whether to manually mark existing deployments of this environment as
inactive (for `start` and `finish` only)
auto_inactive:
required: false
description: |
Whether to mark existing deployments as inactive if a deployment succeeds
(for `finish` only)
default: 'false'
payload:
required: false
description: |
JSON-formatted dictionary with extra information about the deployment (for
`start` only)
auto_merge:
required: false
description: |
Attempts to automatically merge the default branch into the requested ref,
if it's behind the default branch. Defaults to `false`
default: 'false'
required_contexts:
required: false
description: |
The status contexts to verify against commit status checks, separated by
commas. If this argument is `"*"`, all checks are run. If this argument is
omitted, or if it's set to `""`, checking is bypassed entirely. Defaults
to `""`.
default: ''
outputs:
deployment_id:
description: |
The ID of the created GitHub deployment. This is only available from the
`start` step.
status_id:
description: |
The ID of the created GitHub deployment status. This is only available
from the `start` step.
env:
description: |
The name of the configured environment. This is only available from the
`start` step.