From 01c617f70b142a05b39261fb5ec8ae84809d80e3 Mon Sep 17 00:00:00 2001 From: Pallavi Sontakke Date: Mon, 13 Jan 2025 11:36:35 +0530 Subject: [PATCH] Remove unused variable Adjust script to work without fork, directly. --- scripts/release/create_minor_release_PR_commit.sh | 2 -- scripts/release/create_minor_release_branch.sh | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/release/create_minor_release_PR_commit.sh b/scripts/release/create_minor_release_PR_commit.sh index fee050602c2..df90a117e5b 100755 --- a/scripts/release/create_minor_release_PR_commit.sh +++ b/scripts/release/create_minor_release_PR_commit.sh @@ -4,8 +4,6 @@ set -eu # Folder, where we have cloned repositories' sources SOURCES_DIR="timescaledb" -GH_USERNAME=$(gh auth status | grep 'Logged in to' |cut -d ' ' -f 9) - #folder-name FORK_DIR="timescaledb" diff --git a/scripts/release/create_minor_release_branch.sh b/scripts/release/create_minor_release_branch.sh index 33975dcd274..881ca96e475 100755 --- a/scripts/release/create_minor_release_branch.sh +++ b/scripts/release/create_minor_release_branch.sh @@ -4,8 +4,6 @@ set -eu # Folder, where we have cloned repositories' sources SOURCES_DIR="timescaledb" -GH_USERNAME=$(gh auth status | grep 'Logged in to' |cut -d ' ' -f 9) - FORK_DIR="timescaledb" echo "---- Deriving the release related versions from main ----" @@ -25,6 +23,6 @@ echo "NEW_VERSION is $NEW_VERSION" echo "---- Creating the version branch from main ----" git fetch --all -git checkout -b "$RELEASE_BRANCH" upstream/main -git push upstream "$RELEASE_BRANCH":"$RELEASE_BRANCH" +git checkout -b "$RELEASE_BRANCH" origin/main +git push origin "$RELEASE_BRANCH":"$RELEASE_BRANCH"