-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathaction.yml
33 lines (33 loc) · 1.18 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
name: Capture Vercel Preview URL
author: Aaron Imming <[email protected]>
description: Capture a Vercel preview URL and feed it into your next GitHub action.
branding:
icon: triangle
color: gray-dark
inputs:
cancel_on_strings:
description: Cancel the action when comment contains these words (comma separated list)
required: false
default: "Deployment in progress,Preview: Failed,In Progress,🔄 Building,❌ Failed"
GITHUB_TOKEN:
description: >-
GitHub actions token to cancel the action in case preview URL could not be
found. If not specified, the action will explicitly fail.
required: false
default: ""
preview_url_regexp:
description: >-
Regular expression pattern to capture the preview URL. Ensure one of the
capture groups captures the preview URL.
required: false
default: '(?:Preview: \[?(.*)\]?|\[Visit Preview\]\(([^\s]*)\))'
vercel_bot_name:
description: The name of the Vercel account commenting on pull requests.
required: false
default: "vercel[bot]"
outputs:
vercel_preview_url:
description: The preview URL for the pull request's Vercel deployment.
runs:
using: node16
main: dist/index.js