Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide a "moving" v5 tag #271

Open
StephenWithPH opened this issue Apr 25, 2024 · 2 comments
Open

provide a "moving" v5 tag #271

StephenWithPH opened this issue Apr 25, 2024 · 2 comments

Comments

@StephenWithPH
Copy link

StephenWithPH commented Apr 25, 2024

It would be convenient for users of your GitHub Actions to have a "moving" vMajor tag. That allows them--for example--to always use the latest v5.x.x by specifying uses: buildpacks/github-actions/setup-pack@v5.

Note that this aligns with the guidance here: https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions#example-developer-process

We recommend creating releases using semantically versioned tags – for example, v1.1.3 – and keeping major (v1) and minor (v1.1) tags current to the latest appropriate commit.


Currently, only full x.y.z tags exist, so users have to pin to the specific version and periodically bump their tags:

Screenshot 2024-04-24 at 6 07 01 PM

@StephenWithPH
Copy link
Author

@edmorley ... I see you were recently added as a codeowner to this repo, and your commit history here suggests that you do some care and feeding of GitHub Actions automation.

Do you know whether or not this issue is something that is trivially addressable, either by changes to https://github.com/buildpacks/github-actions/blob/main/.github/workflows/pb-update-draft-release.yml , or using that action's release-drafter/release-drafter along with https://github.com/salsify/action-detect-and-tag-new-version per its docs?

A "moving" vMajor tag on this repo would make it much easier for users to stay up to date.

@dmikusa
Copy link
Contributor

dmikusa commented Jan 21, 2025

+1 - we should do this. This is the noisiest GHA in all of my code repos because there's no moving tag.

For the setup-pack action, I don't think this needs a change to the way that the repo is tagging the specific version. You still need to tag a specific release version. The moving tag needs to be changed after the fact to point to the same place as the new version-specific tag. At least that's how I've done this elsewhere.

One way I think we could do this is to add a new action that runs on release or on a new specific tag (although that would be tricky so you don't cause a loop), then have that update the major tag to point to the new release.

A number of the other actions are built as containers and get run that way. Those would require a different process. We'd need to modify the action-* actions to also tag those container images with the major version tag. This is a little more complicated because these actions are not maintained manually, but by the pipeline-builder tool which generates and synchronizes them. I think this open issue would encompass this change already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants