checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Default branch name Not Found

Open DeeptimayeeSethi opened this issue 3 years ago • 3 comments

We are using GitHub Actions for a pull request workflow , and We are getting below error in the PR-Process set up . Can someone help on this

error in PR

DeeptimayeeSethi avatar Sep 21 '22 10:09 DeeptimayeeSethi

Hi @DeeptimayeeSethi I've had this same problem, apparently in my case it was defaulting to "master" as branch name. I've solved it passing "main" (my actual default branch) in the "ref" input

riccardolocci avatar Oct 18 '22 15:10 riccardolocci

I get this for any action run that's not main. Shouldn't the checkout action know what branch to pull and avoid me having to specify ref?

NorseGaud avatar Nov 01 '22 21:11 NorseGaud