checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Request for @latest version with a subset of guaranteed inputs

Open DanTheMan827 opened this issue 1 year ago • 3 comments

I would like to request the introduction of a latest version for the action. This latest version should provide the core functionality with a subset of inputs that are guaranteed to be supported indefinitely, ensuring a stable and consistent usage of the action for workflows that utilize it.

My suggestion would be at minimum:

  • repository
  • ref
  • path
  • token
  • lfs
  • submodules

Implementing this feature will help users using the latest hosted workflow runners benefit from ongoing updates and improvements while maintaining a reliable set of inputs for their workflows. Thank you for considering this request.

DanTheMan827 avatar Jan 17 '25 19:01 DanTheMan827

Could you provide an example? latest isn't necessarily stable 😉

reneleonhardt avatar May 20 '25 07:05 reneleonhardt

I don’t mean head of the main branch, but rather the newest tagged version of the action.

DanTheMan827 avatar May 20 '25 22:05 DanTheMan827

Okay, it will work most of the time, but as I said, not every stable tag is a release, it could be a pre-release (not yet officially released).

Examples to get the latest tag: https://github.com/marketplace/actions/get-latest-tag https://github.com/marketplace/actions/latest-tag https://github.com/actions-ecosystem/action-get-latest-tag https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions

Here is a fresh stable tag for example, but it's a pre-release (for now): https://github.com/nbonamy/witsy/releases/tag/v2.6.4 Under https://github.com/nbonamy/witsy/releases you can see that 2.6.3 is the latest release.

reneleonhardt avatar May 21 '25 06:05 reneleonhardt