From a519d4113086430ace1d7ac8795bd2c2a8cf99e9 Mon Sep 17 00:00:00 2001 From: Diego Imbert <70353967+diegoimbert@users.noreply.github.com> Date: Mon, 16 Mar 2026 13:07:18 +0100 Subject: [PATCH] fix: /updatesqlx now uses ee-repo-ref.txt commit hash (#8387) The /updatesqlx workflow was checking out windmill-ee-private at its default branch HEAD, ignoring the specific commit pinned in backend/ee-repo-ref.txt. This could cause sqlx metadata to be generated against a mismatched EE version. Co-authored-by: Claude Opus 4.6 (1M context) --- .github/workflows/git-commands.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/git-commands.yaml b/.github/workflows/git-commands.yaml index 4e93cd8e9b..f1cc380563 100644 --- a/.github/workflows/git-commands.yaml +++ b/.github/workflows/git-commands.yaml @@ -106,6 +106,19 @@ jobs: git config --local user.name "windmill-internal-app[bot]" git config pull.rebase true git pull origin $BRANCH_NAME + + # Checkout the correct windmill-ee-private commit from ee-repo-ref.txt + if [ -f backend/ee-repo-ref.txt ]; then + EE_REF=$(cat backend/ee-repo-ref.txt | tr -d '[:space:]') + echo "Checking out windmill-ee-private at commit: $EE_REF" + cd windmill-ee-private + git fetch origin $EE_REF + git checkout $EE_REF + cd .. + else + echo "Warning: ee-repo-ref.txt not found, using default branch" + fi + mkdir -p frontend/build cd backend cargo install sqlx-cli --version 0.8.5