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" }