Skip to content

Commit

Permalink
Merge pull request #5 from imjohnbo/outputs
Browse files Browse the repository at this point in the history
Add `issue_number` output
  • Loading branch information
imjohnbo authored Jan 13, 2020
2 parents 24c0888 + 541656e commit 91b8d54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
description: 'Whether to pin your Weekly Radar and unpin the previous one'
default: false
required: false
outputs:
issue_number:
description: 'The issue number of the created radar issue'
runs:
using: 'node12'
main: 'dist/index.js'
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,8 @@ Previously: #${currentRadarNumber}`
core.debug(`newRadarId: ${newRadarId}`);
await pin(newRadarId);
}

core.setOutput('issue_number', newRadarNumber);
}
catch(error) {
core.error(`Error encountered: ${error}.`);
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ Previously: #${currentRadarNumber}`
core.debug(`newRadarId: ${newRadarId}`);
await pin(newRadarId);
}

core.setOutput('issue_number', newRadarNumber);
}
catch(error) {
core.error(`Error encountered: ${error}.`);
Expand Down

0 comments on commit 91b8d54

Please sign in to comment.