diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml
index 67ca0a82ba2..247464b8c78 100644
--- a/.github/workflows/deploy-preview.yml
+++ b/.github/workflows/deploy-preview.yml
@@ -71,6 +71,10 @@ jobs:
${{ steps.url_preview.outputs.NETLIFY_PREVIEW_URL }}
with:
script: |
+ const { NETLIFY_PREVIEW_URL } = process.env;
+
+ console.log(`Hello ${FIRST_NAME} ${LAST_NAME}`)
+
// Define a hidden reference we'll put in new comments and also use
// to find existing comments
let hiddenReference = ' '
@@ -88,7 +92,7 @@ jobs:
// Craft the comment body
let comment = hiddenReference + "Deploy preview "
if (process.env.NETLIFY_PREVIEW_URL) {
- comment = comment + "successfully published at ${{ process.env.NETLIFY_PREVIEW_URL }} with commit (${{ github.sha }})"
+ comment = comment + "successfully published at " + NETLIFY_PREVIEW_URL + " with commit (${{ github.sha }})"
} else {
comment = comment + "failed to publish"
}