Skip to content

Commit 2293711

Browse files
authored
misc: enable using kn-main in CI (#55)
1 parent 5fc1b55 commit 2293711

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions/checkout-head/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ runs:
4444
echo "ref=$ref" >> "$GITHUB_OUTPUT"
4545
else
4646
baseref="main"
47-
if [ -n "$GITHUB_BASE_REF" ]; then
47+
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
4850
echo "attempting GH base ref: $GITHUB_BASE_REF"
4951
if git ls-remote --exit-code --heads "https://github.com/$REPOSITORY.git" "$GITHUB_BASE_REF"; then
5052
baseref="$GITHUB_BASE_REF"

0 commit comments

Comments
 (0)