We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0e3e17 + 9df2b1a commit 7b5ba87Copy full SHA for 7b5ba87
.github/actions/checkout-head/action.yml
@@ -49,7 +49,7 @@ runs:
49
echo "ref=$ref" >> "$GITHUB_OUTPUT"
50
else
51
baseref="main"
52
- if git ls-remote --exit-code --heads "https://github.com/$REPOSITORY.git" "kn-main"; then
+ if [[ "$ref" == kn-* ]] && git ls-remote --exit-code --heads "https://github.com/$REPOSITORY.git" "kn-main"; then
53
baseref="kn-main"
54
elif [ -n "$GITHUB_BASE_REF" ]; then
55
echo "attempting GH base ref: $GITHUB_BASE_REF"
0 commit comments