Skip to content

What is actions/checkout@v2 in Github action? #25682

Answered by mcaskill
karenworld asked this question in Actions
Discussion options

You must be logged in to vote

It is an official GitHub Action used to check-out a repository so a workflow can access it.

  <a href="https://github.com/actions/checkout" target="_blank" rel="noopener nofollow ugc">GitHub</a>

actions/checkout

Action for checking out a repo. Contribute to actions/checkout development by creating an account on GitHub.

By default, this action will check-out to the SHA for that workflow’s event (such as push and pull_request). Otherwise, uses the default branch (usually main or master in a standard repository).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants