Skip to content

Commit

Permalink
add phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Sep 26, 2024
1 parent 1d6416e commit d5a1931
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion actions/smart-vercel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ inputs:
preview_output:
description: 'Output preview markdown'
required: false
preview_section:
description: 'Oytput preview section name'
required: false
prod_mode:
description: 'Production mode'
required: false
Expand Down Expand Up @@ -174,6 +177,7 @@ runs:
VERCEL_TOKEN=${{ inputs.vercel_token }}
VERCEL_GROUP=${{ inputs.vercel_group }}
PREVIEW_OUTPUT=${{ inputs.preview_output }}
PREVIEW_SECTION=${{ inputs.preview_section }}
PROD_MODE=${{ inputs.prod_mode }}
DIST_PATH=${{ inputs.dist_path }}
PATH_VERCEL_JSON=${{ inputs.vercel_json_path }}
Expand Down Expand Up @@ -251,7 +255,11 @@ runs:
COMMIT="Commit: [${SHA}](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/commit/${SHA})"
PREVIEW="Preview: ${PREVIEW_LINK}"
echo '\---' >> comment.md
if [ -n "${PREVIEW_SECTION}" ]; then
echo "\---${PREVIEW_SECTION}---" >> comment.md
else
echo '\---' >> comment.md
fi
echo $COMMIT >> comment.md
echo $PREVIEW >> comment.md
echo '' >> comment.md
Expand Down

0 comments on commit d5a1931

Please sign in to comment.