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-main
1 parent 5fc1b55 commit 2293711Copy full SHA for 2293711
.github/actions/checkout-head/action.yml
@@ -44,7 +44,9 @@ runs:
44
echo "ref=$ref" >> "$GITHUB_OUTPUT"
45
else
46
baseref="main"
47
- if [ -n "$GITHUB_BASE_REF" ]; then
+ if git ls-remote --exit-code --heads "https://github.com/$REPOSITORY.git" "kn-main"; then
48
+ baseref="kn-main"
49
+ elif [ -n "$GITHUB_BASE_REF" ]; then
50
echo "attempting GH base ref: $GITHUB_BASE_REF"
51
if git ls-remote --exit-code --heads "https://github.com/$REPOSITORY.git" "$GITHUB_BASE_REF"; then
52
baseref="$GITHUB_BASE_REF"
0 commit comments