Skip to content

Commit

Permalink
add state output (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatterson27 authored Jan 30, 2023
1 parent a9f1b34 commit 8ffd0e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ outputs:
description: The Pull Request's base sha if one was found
base-repo:
description: The Pull Request's base repository full name (e.g. octocat/Hello-World)
state:
description: The Pull Request's open or closed state if one was found

runs:
using: 'node16'
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const main = async () => {
core.setOutput('base-ref', pr ? pr.base.ref : '')
core.setOutput('base-sha', pr ? pr.base.sha : '')
core.setOutput('base-repo', pr ? pr.base.repo.full_name : '')
core.setOutput('state', pr ? pr.state : '')
}

main().catch(err => core.setFailed(err.message))

0 comments on commit 8ffd0e6

Please sign in to comment.