Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

extension_ci: Update compare versions check (#50006)

Finn Eversc583fea973b9
diff --git a/.github/workflows/extension_bump.yml b/.github/workflows/extension_bump.yml
index ff903eb63d3..db6c7e1bbcb 100644
--- a/.github/workflows/extension_bump.yml
+++ b/.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"
diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.yml
index c74dcdab8df..0a10bce2c75 100644
--- a/.github/workflows/extension_tests.yml
+++ b/.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"
diff --git a/tooling/xtask/src/tasks/workflows/extension_bump.rs b/tooling/xtask/src/tasks/workflows/extension_bump.rs
index bdc25f766e3..a2b618a88fe 100644
--- a/tooling/xtask/src/tasks/workflows/extension_bump.rs
+++ b/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"