Skip to content

Job concurrency does not run latest HEAD #26827

Answered by stefanbuck
stefanbuck asked this question in Actions
Discussion options

You must be logged in to vote

I had another look and turns out that all is needed is to set the default branch as ref to make the checkout action pull the latest HEAD

- uses: actions/checkout@v2
  with: 
    ref: 'main'

From the checkout docs

The branch, tag or SHA to checkout. When checking out the repository that triggered a workflow, this defaults to the reference or SHA for that event. Otherwise, uses the default branch.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

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