Skip to content

Commit 7aa6df8

Browse files
committed
Фикс release.sh
1 parent ccbc707 commit 7aa6df8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ set -euo pipefail
33

44
CHART_FILE="charts/express-botx/Chart.yaml"
55

6+
current_branch=$(git rev-parse --abbrev-ref HEAD)
7+
if [[ "$current_branch" != "main" ]]; then
8+
echo "Error: release.sh must be run from the main branch (current: $current_branch)"
9+
exit 1
10+
fi
11+
612
usage() {
713
echo "Usage: $0 <command>"
814
echo ""

0 commit comments

Comments
 (0)