Files
windmill/backend/write_latest_ee_ref.sh
T
2024-11-19 14:28:12 +01:00

16 lines
412 B
Bash
Executable File

#!/bin/bash
# Navigate to the target directory
cd ../../windmill-ee-private || { echo "Directory not found"; exit 1; }
# 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"