Skip to content

Commit

Permalink
Merge pull request jwalton#20 from guioconnor/master
Browse files Browse the repository at this point in the history
Output pr draft state
  • Loading branch information
jwalton authored Apr 14, 2022
2 parents 465461f + 44e205f commit e12d66b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ async function main() {
const prs = result.data.filter((el) => state === 'all' || el.state === state);
const pr = prs[0];

core.info(`Setting output: draft: ${(pr && pr.draft) || ''}`);
core.setOutput('draft', (pr && pr.draft) || '');
core.info(`Setting output: pr: ${(pr && pr.number) || ''}`);
core.setOutput('pr', (pr && pr.number) || '');
core.info(`Setting output: number: ${(pr && pr.number) || ''}`);
Expand Down

0 comments on commit e12d66b

Please sign in to comment.