-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
33 lines (30 loc) · 1.19 KB
/
Copy pathaction.yml
File metadata and controls
33 lines (30 loc) · 1.19 KB
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
name: "configure-github-deployment"
description: |
description: "Create or update a GitHub deployment"
local: false
inputs:
github-token:
description: "A token used to interact with the GitHub Deployments API"
default: "${{ github.token }}"
deployment-id:
description: |
Optional ID of an existing to deployment to update
If this isn't supplied, a new deployment will be created.
default: ""
deployment-state:
default: "${{ job.status == 'cancelled' && 'inactive' || job.status }}"
description: |
The state to update the deployment to.
One of 'error', 'failure', 'inactive', 'in_progress', 'queued', 'pending' or 'success'.
Defaults to using the status of the currently running job as the deployment state.
environment:
description: "The name of the environment to associate with the deployment"
default: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && 'production' || 'development' }}
outputs:
deployment-id:
description: "The ID of the Github Deployment created"
deployment-state:
description: "The state of the Github Deployment after update"
runs:
using: "node24"
main: "dist/index.mjs"