From 1c74d64f0ddfcd181826099f093216553e6d33e1 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Fri, 21 Feb 2025 12:24:37 -0600 Subject: [PATCH] fix(deploy-preview): update link text, add environment link --- .github/workflows/deploy-preview.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 6bdc09d091d..67ca0a82ba2 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -16,6 +16,9 @@ jobs: netlify: if: github.repository == 'carbon-design-system/carbon-website' runs-on: ubuntu-latest + environment: + name: Preview + url: ${{ steps.url_preview.outputs.NETLIFY_PREVIEW_URL }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Use Node.js 20.x @@ -85,7 +88,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 ${{ process.env.NETLIFY_PREVIEW_URL }} with commit (${{ github.sha }})" } else { comment = comment + "failed to publish" }