extension_ci: Update compare versions check (#50006)

Finn Evers created

Updates the check to explicitly compare against `origin/main` as opposed
to just `main`.

Release Notes:

- N/A

Change summary

.github/workflows/extension_bump.yml                | 2 +-
.github/workflows/extension_tests.yml               | 2 +-
tooling/xtask/src/tasks/workflows/extension_bump.rs | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

.github/workflows/extension_bump.yml 🔗

@@ -40,7 +40,7 @@ jobs:
         CURRENT_VERSION="$(sed -n 's/^version = \"\(.*\)\"/\1/p' < extension.toml | tr -d '[:space:]')"
 
         if [[ "${{ github.event_name }}" == "pull_request" ]]; then
-            PR_FORK_POINT="$(git merge-base --fork-point main)"
+            PR_FORK_POINT="$(git merge-base --fork-point origin/main)"
             git checkout "$PR_FORK_POINT"
         elif BRANCH_PARENT_SHA="$(git merge-base origin/main origin/zed-zippy-autobump)"; then
             git checkout "$BRANCH_PARENT_SHA"

.github/workflows/extension_tests.yml 🔗

@@ -115,7 +115,7 @@ jobs:
         CURRENT_VERSION="$(sed -n 's/^version = \"\(.*\)\"/\1/p' < extension.toml | tr -d '[:space:]')"
 
         if [[ "${{ github.event_name }}" == "pull_request" ]]; then
-            PR_FORK_POINT="$(git merge-base --fork-point main)"
+            PR_FORK_POINT="$(git merge-base --fork-point origin/main)"
             git checkout "$PR_FORK_POINT"
         elif BRANCH_PARENT_SHA="$(git merge-base origin/main origin/zed-zippy-autobump)"; then
             git checkout "$BRANCH_PARENT_SHA"

tooling/xtask/src/tasks/workflows/extension_bump.rs 🔗

@@ -151,7 +151,7 @@ pub(crate) fn compare_versions() -> (Step<Run>, StepOutput, StepOutput) {
         CURRENT_VERSION="$({VERSION_CHECK})"
 
         if [[ "${{{{ github.event_name }}}}" == "pull_request" ]]; then
-            PR_FORK_POINT="$(git merge-base --fork-point main)"
+            PR_FORK_POINT="$(git merge-base --fork-point origin/main)"
             git checkout "$PR_FORK_POINT"
         elif BRANCH_PARENT_SHA="$(git merge-base origin/main origin/zed-zippy-autobump)"; then
             git checkout "$BRANCH_PARENT_SHA"