Add output definitions

This commit is contained in:
Alex Burgel 2023-05-04 22:29:20 -04:00 committed by GitHub
parent 7748c8f507
commit 17db3d5bd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -78,6 +78,11 @@ inputs:
description: "The GitHub access token (e.g. secrets.GITHUB_TOKEN) used to create or update the comment. This defaults to {{ github.token }}."
default: "${{ github.token }}"
required: false
outputs:
previous_comment_id:
description: "ID of previous comment, if found"
created_comment_id:
description: "ID of newly created comment, if any"
runs:
using: "node16"
main: "dist/index.js"

View file

@ -115,7 +115,7 @@ export async function createComment(
if (!body && !previousBody)
return core.warning("Comment body cannot be blank")
await octokit.rest.issues.createComment({
let x = await octokit.rest.issues.createComment({
...repo,
issue_number,
body: previousBody