You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm passing a commit to ref instead of a branch or tag. When using fetch-depth: 0 in conjunction to this, I run into a checkout error (output from job):
/usr/bin/git branch --list --remote origin/cfe42d2a
/usr/bin/git tag --list cfe42d2a
Error: A branch or tag with the name 'cfe42d2a' could not be found
I'm passing a commit to
ref
instead of a branch or tag. When usingfetch-depth: 0
in conjunction to this, I run into a checkout error (output from job):/usr/bin/git branch --list --remote origin/cfe42d2a /usr/bin/git tag --list cfe42d2a Error: A branch or tag with the name 'cfe42d2a' could not be found
Debug info
Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
workflow_call
where an input is what git ref to check out...looking at the code, I can't help but feeling that the case is not covered?
checkout/src/ref-helper.ts
Lines 29 to 60 in b4ffde6
..finally, if I skip passing
fetch-depth: 0
, I run into this issue: #1313The text was updated successfully, but these errors were encountered: