Skip to content

Commit

Permalink
👷 Added basic Workflow Summary
Browse files Browse the repository at this point in the history
  • Loading branch information
mountainash committed Mar 11, 2024
1 parent 0a6da14 commit 5f14dbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32645,6 +32645,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.addEOL()
core.summary.addHeading('DEPLOYMENT_URLS', '2')
core.summary.addList(deploymentUrls)
core.summary.addEOL()
core.summary.addLink('DEPLOYMENT_UNIQUE_URL', deploymentUrls[deploymentUrls.length - 1])
core.summary.addEOL()
core.summary.write()

core.info('Done')
} catch (err) {
await github.updateDeployment('failure')
Expand Down
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,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.addEOL()
core.summary.addHeading('DEPLOYMENT_URLS', '2')
core.summary.addList(deploymentUrls)
core.summary.addEOL()
core.summary.addLink('DEPLOYMENT_UNIQUE_URL', deploymentUrls[deploymentUrls.length - 1])
core.summary.addEOL()
core.summary.write()

core.info('Done')
} catch (err) {
await github.updateDeployment('failure')
Expand Down

0 comments on commit 5f14dbf

Please sign in to comment.