generated from tj-actions/docker-action
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
57 lines (55 loc) · 1.72 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
name: Vercel Wait for Deployment
description: Wait for a Vercel deployment to finish
author: tj-actions
inputs:
token:
description: 'Vercel token can be obtained from https://vercel.com/account/tokens'
required: true
project-id:
description: 'Vercel project id can be obtained from `https://vercel.com/<team>/<project>/settings`'
required: true
team-id:
description: 'Vercel team id can be obtained from `https://vercel.com/teams/<team>/settings`'
required: false
timeout:
description: 'Timeout in seconds'
required: false
default: "600"
delay:
description: 'Delay in seconds'
required: false
default: "5"
sha:
description: 'The commit sha to wait for'
required: true
outputs:
deployment-id:
description: 'The deployment id'
value: ${{ steps.vercel-wait.outputs.id }}
deployment-url:
description: 'The deployment url'
value: ${{ steps.vercel-wait.outputs.url }}
deployment-state:
description: 'The deployment state'
value: ${{ steps.vercel-wait.outputs.state }}
deployment-alias-error:
description: 'The deployment alias error'
value: ${{ steps.vercel-wait.outputs.alias_error }}
runs:
using: 'composite'
steps:
- run: |
bash $GITHUB_ACTION_PATH/entrypoint.sh
id: vercel-wait
shell: bash
env:
# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#example-specifying-inputs
INPUT_TOKEN: ${{ inputs.token }}
INPUT_PROJECT_ID: ${{ inputs.project-id }}
INPUT_TEAM_ID: ${{ inputs.team-id }}
INPUT_TIMEOUT: ${{ inputs.timeout }}
INPUT_DELAY: ${{ inputs.delay }}
INPUT_SHA: ${{ inputs.sha }}
branding:
icon: clock
color: white