Add release id to outputs (#60)

* Add release ID to outputs

* Update README
This commit is contained in:
Loïc Albertin 2021-05-02 00:56:49 +02:00 committed by softprops
parent 6f63b4506e
commit 674bcd2d67
3 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,8 @@ env:
outputs:
url:
description: 'URL to the Release HTML Page'
id:
description: 'Release ID'
upload_url:
description: 'URL for uploading assets to the release'
runs:

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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());
setOutput("upload_url", rel.upload_url);
} catch (error) {
setFailed(error.message);