From 24343a6d4f13c851f56bd4feca5b6ffb110fc8bb Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 19 Nov 2024 14:28:12 +0100 Subject: [PATCH] nit autoscaling --- backend/ee-repo-ref.txt | 2 +- backend/write_latest_ee_ref.sh | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 backend/write_latest_ee_ref.sh diff --git a/backend/ee-repo-ref.txt b/backend/ee-repo-ref.txt index 080f7389be..0042b552e0 100644 --- a/backend/ee-repo-ref.txt +++ b/backend/ee-repo-ref.txt @@ -1 +1 @@ -0ad09326e5cdaf098e189893a14388db02266c0e \ No newline at end of file +5bb4a7ce8660effc14b4ab96b17ff11f4048bfe9 \ No newline at end of file diff --git a/backend/write_latest_ee_ref.sh b/backend/write_latest_ee_ref.sh new file mode 100755 index 0000000000..476d4a7d57 --- /dev/null +++ b/backend/write_latest_ee_ref.sh @@ -0,0 +1,16 @@ +#!/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" \ No newline at end of file