latest-tag | : octocat : Automatically generate & update | Continous Integration library
kandi X-RAY | latest-tag Summary
kandi X-RAY | latest-tag Summary
Automatically creates & updates a latest tag pointing to your latest release. When using GitHub Actions you always have to put a reference for every action you use in your worflows: that means that you either need to choose a specific version or you need to use a branch. If you want to use the latest release of an action you can only hope authors are mantaining a latest tag that they update with every version: although not impossible, it's not that easy to find someone willing to do that. That's why I made this action: if you're the kind of guy that doesn't like to update tags you can simply use this action and forget about it. You can just put latest in the documentation: your users will get the benefits of using a branch as ref and the security of using only stable versions (as long as you don't make breaking changes).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of latest-tag
latest-tag Key Features
latest-tag Examples and Code Snippets
Community Discussions
Trending Discussions on latest-tag
QUESTION
We're updating our release workflow to use semantic-release, and I need to be able to grab the SHA of the latest tag, create a new branch with it, build our assets, commit them to that new branch.
The action I'm using to create the branch, requires the SHA of the parent branch if you're building a branch based on something other than the branch the runs the workflow.
So I have a couple actions to determine if the release is major, minor, or patch, and then will find the latest semver tag name. But I don't know how to get the SHA of this Ref.
So far I have this:
...ANSWER
Answered 2022-Jan-11 at 05:12To answer your question:
git log -1 --format="%H" REF-NAME
REF-NAME
here could be a tag, branch, or a commit ID, any of which the command will return the commit ID.
Note though that you should be able to create a branch by just supplying the tag name without the commit ID.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install latest-tag
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page