Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ jobs:
# workflow_dispatch or other - compare to main
# Note: fetch-depth: 0 in checkout already fetches all branches
# Only fetch main if it's not already available
git fetch origin main || true
DIFF_RANGE="origin/main...HEAD"

DEFAULT_BRANCH="${{ github.event.repository.default_branch || github.repository_default_branch }}"
echo "Default branch: $DEFAULT_BRANCH"

git fetch origin "$DEFAULT_BRANCH" || true
DIFF_RANGE="origin/${DEFAULT_BRANCH}...HEAD"
fi

echo "Using diff range: $DIFF_RANGE"
Expand Down