set-timezone icon indicating copy to clipboard operation
set-timezone copied to clipboard

Use conventional tagging for GitHub actions

Open TWiStErRob opened this issue 3 years ago • 1 comments

I noticed you're doing v1.0 and v1.1 tags for releases. This is nice, but it means that people have to manually update their action references every time there's a release: uses: szenius/[email protected] -> uses: szenius/[email protected].

This can be easily solved by pushing a v1 tag to your Git repo (no release required) and force pushing that v1 tag every time there's a v1.x release.

  • uses: szenius/set-timezone@v1 -> builds with 1.1 right now
  • some time in the future you release v1.2 and update the v1 tag.
  • uses: szenius/set-timezone@v1 -> builds with 1.2 immediately on the next execution

Refs:

  • https://docs.github.com/en/actions/creating-actions/about-custom-actions#using-tags-for-release-management
  • https://docs.github.com/en/actions/creating-actions/releasing-and-maintaining-actions#example-developer-process (step 3, point 2)

TWiStErRob avatar Nov 13 '22 10:11 TWiStErRob

Hi @TWiStErRob thanks for the great suggestion! I'll do this when we move to v2 since I don't foresee us moving from current version for a long time.

szenius avatar May 05 '23 16:05 szenius