Add upload_url as action output

This commit is contained in:
erri120 2021-02-01 13:47:06 +01:00
parent affa18ef97
commit fd0ee3129d
No known key found for this signature in database
GPG key ID: 7FA9556C936B847C
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,8 @@ env:
outputs:
url:
description: 'URL to the Release HTML Page'
upload_url:
description: 'URL for uploading assets to the release'
runs:
using: 'node12'
main: 'dist/index.js'

View file

@ -55,6 +55,7 @@ async function run() {
}
console.log(`🎉 Release ready at ${rel.html_url}`);
setOutput("url", rel.html_url);
setOutput("upload_url", rel.upload_url);
} catch (error) {
setFailed(error.message);
}