Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
feat: output tag name and upload url (#43)
Browse files Browse the repository at this point in the history
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: googleapis/release-please-action#8
Fix: googleapis/release-please-action#41
  • Loading branch information
mmarchini committed Jul 23, 2020
1 parent 6e96ade commit 90469b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion index.js
Expand Up @@ -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:
Expand Down

0 comments on commit 90469b0

Please sign in to comment.