From 3073d9e9254b33de17d20fd3d3b54a48142b600a Mon Sep 17 00:00:00 2001 From: Florian Hussonnois Date: Fri, 24 Jan 2025 21:46:53 +0100 Subject: [PATCH] fix(script): update release-plugins --- release-plugins.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/release-plugins.sh b/release-plugins.sh index 309413639f1..1001bb1ea47 100755 --- a/release-plugins.sh +++ b/release-plugins.sh @@ -171,18 +171,18 @@ do fi if [[ "$DRY_RUN" == false ]]; then + CURRENT_BRANCH=$(git branch --show-current); + echo "Run gradle release for plugin: $PLUGIN"; - echo "Branch: $(git rev-parse --abbrev-ref HEAD)"; + echo "Branch: $CURRENT_BRANCH"; if [[ "$AUTO_YES" == false ]]; then askToContinue fi - CURRENT_BRANCH=$(git branch --show-current); - # Create and push release branch - git checkout -b "$PUBLISH_RELEASE_BRANCH"; - git push -u origin "$PUBLISH_RELEASE_BRANCH"; + git checkout -b "$PUSH_RELEASE_BRANCH"; + git push -u origin "$PUSH_RELEASE_BRANCH"; # Run gradle release git checkout "$CURRENT_BRANCH";