Skip to content

Commit

Permalink
Setting GITHUB_STEP_SUMMARY with commentText
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanclevenger authored Oct 1, 2022
1 parent 1d82e9b commit e2642a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ try {
const commentText = deployment?.commentText
if (commentText) {
core.setOutput("url", commentText)
fs.writeFileSync(process.env.GITHUB_STEP_SUMMARY, commentText)
console.log(`The deployment results: ${JSON.stringify(deployment, null, 2)}`)
} else {
core.setFailed(JSON.stringify(deployment, null, 2))
Expand Down

2 comments on commit e2642a8

@workers-do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@workers-do
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.