Skip to content

Commit 91b8d54

Browse files
authored
Merge pull request #5 from imjohnbo/outputs
Add `issue_number` output
2 parents 24c0888 + 541656e commit 91b8d54

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ inputs:
1717
description: 'Whether to pin your Weekly Radar and unpin the previous one'
1818
default: false
1919
required: false
20+
outputs:
21+
issue_number:
22+
description: 'The issue number of the created radar issue'
2023
runs:
2124
using: 'node12'
2225
main: 'dist/index.js'

dist/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,8 @@ Previously: #${currentRadarNumber}`
649649
core.debug(`newRadarId: ${newRadarId}`);
650650
await pin(newRadarId);
651651
}
652+
653+
core.setOutput('issue_number', newRadarNumber);
652654
}
653655
catch(error) {
654656
core.error(`Error encountered: ${error}.`);

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ Previously: #${currentRadarNumber}`
148148
core.debug(`newRadarId: ${newRadarId}`);
149149
await pin(newRadarId);
150150
}
151+
152+
core.setOutput('issue_number', newRadarNumber);
151153
}
152154
catch(error) {
153155
core.error(`Error encountered: ${error}.`);

0 commit comments

Comments
 (0)