github-action icon indicating copy to clipboard operation
github-action copied to clipboard

Add tags like `v1` etc

Open XhmikosR opened this issue 6 years ago • 6 comments

Many official GitHub Actions follow this scheme. This allows people to have better control on the action. Using master can break at any time, while using a tag shouldn't break without updating the major version.

For example https://github.com/actions/setup-node/releases or https://github.com/actions/checkout/releases

BTW I'm not sure how they automate the release process, but I can't imagine this is done by hand, i.e. recreating the tag manually.

XhmikosR avatar Oct 01 '19 11:10 XhmikosR

To automate it you can use this action.

s-weigand avatar Nov 29 '19 11:11 s-weigand

Just as a reference: https://docs.github.com/en/actions/creating-actions/about-actions#using-tags-for-release-management

cedx avatar Sep 20 '21 17:09 cedx

Looking at https://github.com/coverallsapp/github-action/releases now, it seems that there are Git tags and then maybe this ticket can be closed as fixed?

hartwork avatar Dec 25 '21 00:12 hartwork

Nope, there is no v1 tag. The idea is to give people the ability to point to a major version tag without having to update their workflows for each minor/patch version.

XhmikosR avatar Dec 28 '21 06:12 XhmikosR

Nope, there is no v1 tag. The idea is to give people the ability to point to a major version tag without having to update their workflows for each minor/patch version.

Maybe we're talking about two different things. If you look at https://github.com/actions/setup-python/tags , they have both v1 and v2 Git tags, where v2 is moved every now and then. It's not something I would do and recommend personally, but it's a workaround that is in use in the wild to implement a semver-like approach with little need for frequent updates, and that repository is proof (and not the only one).

hartwork avatar Dec 28 '21 15:12 hartwork

We are talking about the same thing. This action here does not publish semver major tags on each mino/patch release, which is exactly what this issue is about.

XhmikosR avatar Dec 28 '21 18:12 XhmikosR

Hey! Now there is a v1 tag. Please mention me if you feel a need for minor tags like v1.1 and v1.2

mrexox avatar Feb 27 '23 10:02 mrexox

@mrexox thanks for this! That being said, the process should be automated so that v1, v2 tags are created automatically.

XhmikosR avatar Mar 11 '23 13:03 XhmikosR