Files
windmill/backend/write_latest_ee_ref.sh
Ruben Fiszel c8d99d7fc9 replace SELECT * with explicit columns in teams command query (#8129)
* fix: replace SELECT * with explicit columns in teams command query

- Update sqlx offline cache for the changed query
- Fix write_latest_ee_ref.sh to prefer matching EE worktree branch
- Update ee-repo-ref.txt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: update ee-repo-ref to 8ffae1f43b31dc8136714fa612d22b6301773e27

This commit updates the EE repository reference after PR #434 was merged in windmill-ee-private.

Previous ee-repo-ref: da1f8bf8676f85cac2b6fa2705246e1819d4b6f0

New ee-repo-ref: 8ffae1f43b31dc8136714fa612d22b6301773e27

Automated by sync-ee-ref workflow.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
2026-02-27 06:54:33 +00:00

29 lines
762 B
Bash
Executable File

#!/bin/bash
# Detect the current branch name
branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
# Try, in order: matching EE worktree, sibling repo, home directory fallback
ee_worktree="$HOME/windmill-ee-private__worktrees/$branch"
if [ -n "$branch" ] && [ -d "$ee_worktree" ]; then
cd "$ee_worktree"
elif cd ../../windmill-ee-private 2>/dev/null; then
:
elif cd ~/windmill-ee-private 2>/dev/null; then
:
else
echo "Directory not found"; exit 1
fi
# Get the current commit hash
commit_hash=$(git rev-parse HEAD)
# Navigate back to the original directory
cd - || exit
# Write the commit hash to ./ee-repo-ref.txt
echo -n "$commit_hash" > ./ee-repo-ref.txt
# Confirmation message
echo "Commit hash $commit_hash written to ee-repo-ref.txt"