1
0
mirror of https://github.com/joaquinjsb/gitea-release-please-action synced 2026-05-12 17:41:38 +02:00

feat: output tag name and upload url (#43)

The tag name is useful to interact with the release on following steps,
and the upload url is useful to upload assets to the release.

Fix: https://github.com/GoogleCloudPlatform/release-please-action/issues/8
Fix: https://github.com/GoogleCloudPlatform/release-please-action/issues/41
This commit is contained in:
mmarchini
2020-07-23 11:12:52 -07:00
committed by GitHub
parent 6e96ade4be
commit 90469b02b4
2 changed files with 13 additions and 3 deletions

View File

@@ -19,7 +19,12 @@ async function main () {
token
})
const releaseCreated = await gr.createRelease()
if (releaseCreated) core.setOutput('release_created', true)
if (releaseCreated) {
const { upload_url, tag_name } = releaseCreated
core.setOutput('release_created', true)
core.setOutput('upload_url', upload_url)
core.setOutput('tag_name', tag_name)
}
// Next we check for PRs merged since the last release, and groom the
// release PR: