Skip to content

Commit

Permalink
Add logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarrieur committed Oct 18, 2021
1 parent 6ed1bbd commit fe5faa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ async function main() {
const prs = result.data.filter((el) => state === 'all' || el.state === state);
const pr = prs[0];

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

Expand Down

0 comments on commit fe5faa6

Please sign in to comment.