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.
kn-
1 parent 07c11e4 commit 9df2b1aCopy full SHA for 9df2b1a
.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