We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2780efb commit feff80eCopy full SHA for feff80e
finish/action.yml
@@ -9,8 +9,10 @@ inputs:
9
required: false
10
include-preview:
11
description: 'Whether to include the created preview URL in the PR comment'
12
- type: boolean
13
- default: false
+ required: false
+ preview-url:
14
+ description: 'The preview url to include in the PR comment'
15
16
17
runs:
18
using: composite
@@ -30,7 +32,9 @@ runs:
30
32
shell: bash
31
33
if: inputs.include-preview
34
run: |
- if [[ -e ls-preview-url.txt ]]; then
35
+ if [[ -z "${{ inputs.preview-url }}" ]]; then
36
+ echo "LS_PREVIEW_URL=${{ inputs.preview }}" >> $GITHUB_ENV
37
+ elif [[ -e ls-preview-url.txt ]]; then
38
echo "LS_PREVIEW_URL=$(<ls-preview-url.txt)" >> $GITHUB_ENV
39
else
40
echo "LS_PREVIEW_URL=Unable to determine preview URL" >> $GITHUB_ENV
0 commit comments