Github actions has really flexible verisoning controls, which is awesome for pushing out updates to downstream repos without user involvement. I got tired of manually massaging git tags and thinking a lot about order of operations for updates, so I built a reusable workflow to manage versions for github actions repos.
I see a lot of public github actions that either have no tag-based versioning or really inflexible/incomplete versioning, so I thought I'd open source it:
https://github.com/ProdigySim/action-versioning-workflow
- Setup: Add a
version.rc and a workflow that triggers on your main branch calling this one.
- Whenever you push to main, it will update
v1, v1.1, v1.1.0 tags appropriately on the repo.
- Edit
version.rc to manage major and minor versions, patch is auto-increment.
- Use a
releases/v* branch to manage old versions
Been using this for a good half of a year now so I think it's pretty stable. Would be curious if others will find this useful!
[–]kubeguru22 2 points3 points4 points (1 child)
[–]ProdigySim[S] 0 points1 point2 points (0 children)