mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-06-28 06:16:01 +00:00
Add release ID to outputs
This commit is contained in:
parent
4fb86a77e0
commit
fc23b5f44a
3 changed files with 4 additions and 1 deletions
|
@ -32,6 +32,8 @@ env:
|
|||
outputs:
|
||||
url:
|
||||
description: 'URL to the Release HTML Page'
|
||||
id:
|
||||
description: 'Release ID'
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: 'dist/index.js'
|
||||
|
|
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -55,6 +55,7 @@ async function run() {
|
|||
}
|
||||
console.log(`🎉 Release ready at ${rel.html_url}`);
|
||||
setOutput("url", rel.html_url);
|
||||
setOutput("id", rel.id.toString());
|
||||
} catch (error) {
|
||||
setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue