Skip to content

Commit

Permalink
💅 Quick cleanup of Workflow Summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mountainash committed Mar 11, 2024
1 parent 4ea5650 commit 9248f0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32646,13 +32646,15 @@ const run = async () => {
core.setOutput('DEPLOYMENT_CREATED', true)
core.setOutput('COMMENT_CREATED', IS_PR && CREATE_COMMENT)

core.summary.addLink('PREVIEW_URL', previewUrl)
core.summary.addHeading('VERCEL_PREVIEW_URL', '2')
core.summary.addLink(previewUrl, previewUrl)
core.summary.addEOL()
core.summary.addHeading('VERCEL_DEPLOYMENT_UNIQUE_URL', '2')
core.summary.addLink(deploymentUniqueURL, deploymentUniqueURL)
core.summary.addEOL()
core.summary.addHeading('DEPLOYMENT_URLS', '2')
core.summary.addList(deploymentUrls)
core.summary.addEOL()
core.summary.addLink('DEPLOYMENT_UNIQUE_URL', deploymentUniqueURL)
core.summary.addEOL()
core.summary.write()

// Set environment variable for use in subsequent job steps
Expand Down
8 changes: 5 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,15 @@ const run = async () => {
core.setOutput('DEPLOYMENT_CREATED', true)
core.setOutput('COMMENT_CREATED', IS_PR && CREATE_COMMENT)

core.summary.addLink('PREVIEW_URL', previewUrl)
core.summary.addHeading('VERCEL_PREVIEW_URL', '2')
core.summary.addLink(previewUrl, previewUrl)
core.summary.addEOL()
core.summary.addHeading('VERCEL_DEPLOYMENT_UNIQUE_URL', '2')
core.summary.addLink(deploymentUniqueURL, deploymentUniqueURL)
core.summary.addEOL()
core.summary.addHeading('DEPLOYMENT_URLS', '2')
core.summary.addList(deploymentUrls)
core.summary.addEOL()
core.summary.addLink('DEPLOYMENT_UNIQUE_URL', deploymentUniqueURL)
core.summary.addEOL()
core.summary.write()

// Set environment variable for use in subsequent job steps
Expand Down

0 comments on commit 9248f0f

Please sign in to comment.