Skip to content

Commit

Permalink
Merge branch 'main' into toggletip-usage-update
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones authored Feb 21, 2025
2 parents 32837c1 + a1d7d7b commit 8a7e53c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<!--CarbonWebsiteDeployPreviewComment-DoNotDelete--> '
Expand All @@ -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 <a href=\"${{ process.env.NETLIFY_PREVIEW_URL }}\">${{ process.env.NETLIFY_PREVIEW_URL }}</a> with commit (${{ github.sha }})"
comment = comment + "successfully published at <a href=\"" + NETLIFY_PREVIEW_URL + "\">" + NETLIFY_PREVIEW_URL + "</a> with commit (${{ github.sha }})"
} else {
comment = comment + "failed to publish"
}
Expand Down

0 comments on commit 8a7e53c

Please sign in to comment.