Skip to content

If you're not specific which version to use of an action in a Github workflow, will it use the latest version? #48058

Discussion options

You must be logged in to vote

The answer is that it depends on the repository the action is in. The part after the @ must be a valid Git ref (branch or tag name) or commit ID in the action repository. actions/checkout@v3 will simply use whichever commit the v3 tag or branch in the actions/checkout repository points at.

If you look at the list of tags for actions/checkout, you can see that currently (as I'm writing this) the v3 and v3.3.0 tags point at the same commit:

But keep in mind: It's completely up to the maintainers of the action repository, there's no version parsing involved. ⚠️

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DanielGSoftware
Comment options

@owaishussain227

This comment was marked as spam.

@dirkf
Comment options

Answer selected by DanielGSoftware
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
4 participants