Question, Bug, or Feature?
Type: Feature
Enter Task Name: GitHubRelease
Azure Pipelines
Hosted VS 2017
The GitHubRelease task does not appear to support using variables to name the release on GitHub. For example, I'd like to name my release "Product Release 20190426.2" using the release title value "Product Release $(Date:yyyyMMdd)-$(Rev:r)"
I recently ran into this similar issue when creating a nightly build pipeline that publishes a release. I ended up settling on Nightly-$(Build.BuildId) but I'd of course prefer something a bit more meaningful.
To anyone who comes across this, I found a way to do it that worked for us.
In our release pipeline, under the general options area where it asks for "Release name format" I gave it the format with a date variable like so: Nightly-$(Date:yyyy-MM-dd)
Then, in the github release task when it asks for a tag, I gave it: $(Release.ReleaseName)
This will then publish a release with that tag and name over on Github. Not the most intuitive, but it seems to work.
To anyone who comes across this, I found a way to do it that worked for us.
In our release pipeline, under the general options area where it asks for "Release name format" I gave it the format with a date variable like so: Nightly-$(Date:yyyy-MM-dd)
Then, in the github release task when it asks for a tag, I gave it: $(Release.ReleaseName)
This will then publish a release with that tag and name over on Github. Not the most intuitive, but it seems to work.
Now that was epic! I've been trying to find a way through this the whole day. Couldn't figure out why "Tag" and "Release title" were not accepting the $(Rev:r). Thanks a lot for that!!!
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Most helpful comment
To anyone who comes across this, I found a way to do it that worked for us.
In our release pipeline, under the general options area where it asks for "Release name format" I gave it the format with a date variable like so: Nightly-$(Date:yyyy-MM-dd)
Then, in the github release task when it asks for a tag, I gave it: $(Release.ReleaseName)
This will then publish a release with that tag and name over on Github. Not the most intuitive, but it seems to work.