What does the suggested URL do for generating a new release? #190720
Replies: 3 comments
-
|
The ‘suggested URL’ from PaulHatch/semantic-version@v4.0 (e.g., something like ${{ steps.version.outputs.version_url }}) generates a release tag URL for your workflow it's a computed link like https://github.com/user/repo/releases/tag/${{ steps.semantic.outputs.version_tag }} for the new patch/minor/major tag based on commit messages. Use it post-tag creation (after git tag ${{ steps.version.outputs.version_tag }} && git push origin ${{ steps.version.outputs.version_tag }}) in an action like softprops/action-gh-release to auto-create the release page with notes. If unclear, share your full workflow YAML for exact tweaks |
Beta Was this translation helpful? Give feedback.
-
|
Hey! It sounds like you’re on the right track with semantic-version. That URL you're seeing in the logs is actually just a "pre-filled" link that GitHub generates to help you manually create a release in the browser. |
Beta Was this translation helpful? Give feedback.
-
|
Instead of trying to build a URL for a human to click, you should add a step to your workflow that creates the GitHub Release for you using the outputs from the semantic-version step |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Other
Discussion Details
I'm learning how to get the semantic versions of the tags/releases in one of our repos. I'm using Paul Hatch's semantic-version@5.4.0. I've got it to the point where it no longer fails, which is good. 😄
We want to be able to take the maximum semantic version, add 1 to the patch number, to create a new tag, which we'll save as a part of a new release. In the log of the successful run of the workflow it says this:
I realize that is a canned response to help the user get started. I tried searching for how to use what was given but couldn't find anything. So, I now have some questions.
First, the point of my using semantic-version@5.4.0 is so I can get the semantic version numbers, then increment the patch number as I've described. I'm sure that I would have to take that major, minor, and patch numbers to use in that URL, but how do I do that?
Second, I presume I'll have to capture that GUID so I can use it, hopefully within the workflow's execution. How do I get that?
Beta Was this translation helpful? Give feedback.
All reactions