-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call @actions/core setOutput with created tag #8
Comments
@JasonEtco I don't think it does so yet, but we could make this line:
Return the tag of a release, if one is created? |
Nice, thanks for that @bcoe. I think this would also require an upstream change to
class GitHubRelease {
async createRelease() {
// ...
- await this.gh.createRelease(
+ const release = await this.gh.createRelease(
this.packageName,
gitHubReleasePR.version,
gitHubReleasePR.sha,
latestReleaseNotes
);
// ...
+ return release
} - await gr.createRelease()
+ const release = await gr.createRelease()
+ core.setOutput('tag_name', release.tag_name) |
@JasonEtco bumped into a couple issues and had to rollback:
|
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#8 Fix: googleapis#41
馃憢 @bcoe! Following up on this Twitter conversation. It'd be rad if this action called
@actions/core
'ssetOutput
method, to use the tag that was created in the next actions in a workflow. I'm not sure where that's exposed, but if you can point me to it, happy to open a PR. It'd look something like this:This would pair nicely with build-and-tag-action's
tag_name
input!The text was updated successfully, but these errors were encountered: