github-workflows-kt icon indicating copy to clipboard operation
github-workflows-kt copied to clipboard

Encourage GitHub actions authors that we support to provide major version(s) for their action

Open jmfayard opened this issue 4 years ago • 0 comments

GitHub Actions Kotlin DSL provide an alternative to write GitHub Actions not in YAML but in a type-safe programming language: Kotlin.

To this end we provide type-safe wrappers for currently 72 (and counting) wrapper actions. Those type-safe wrappers are generated from its action.yml which we update when it goes to a new major version, for example actions/cache@v2 to actions/cache@v3

Unfortunately when an action don't have a major version, which is what GitHub recommands, we are forced to update manually for every minor version, like from appleboy/scp-action/v0.1.2 to appleboy/scp-action/v0.1.3

Would you consider creating a major version for your action?

You can find here the recommendations from GitHub:

https://github.com/actions/toolkit/blob/main/docs/action-versioning.md (see "Recommendations" in particular)

Note: in practice this is done by pushing a tag v1 to your latest 1.x.y release

git tag -fa v1 -m "Update v1 tag"
git push origin v1 --force

jmfayard avatar Jun 17 '22 14:06 jmfayard