From f83d23f5b601865a6739082a5a8f55bd74987413 Mon Sep 17 00:00:00 2001 From: Phil Tyler Date: Thu, 12 Dec 2024 14:46:17 -0800 Subject: [PATCH] param base branch --- .github/update_tag1_d7es.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/update_tag1_d7es.sh b/.github/update_tag1_d7es.sh index 2b513ac3cf..1fad431502 100755 --- a/.github/update_tag1_d7es.sh +++ b/.github/update_tag1_d7es.sh @@ -1,6 +1,5 @@ #!/bin/bash set -euo pipefail -set +x # remove before merge main() { # Variables @@ -9,8 +8,7 @@ main() { local TEMP_BRANCH="update-$MODULE_NAME-$(date +%Y%m%d%H%M%S)" local LATEST_VERSION local CURRENT_VERSION - - + local PR_BASE_BRANCH="default" # With these credentials, commits will be pushed to 'master' and available on # the upstream immediately. @@ -34,7 +32,8 @@ main() { echo "Latest: ${LATEST_VERSION}" if [ "$LATEST_VERSION" == "$CURRENT_VERSION" ]; then - exit # Already up to date + echo "Already up to date." + exit 0 fi local PR_TITLE="Update $MODULE_NAME to version $LATEST_VERSION" @@ -45,7 +44,7 @@ main() { if [ -n "$PR_EXISTS" ]; then echo "A PR for version $LATEST_VERSION already exists. Skipping PR creation." - exit # PR already exists + exit 0 fi git checkout -b "$TEMP_BRANCH" @@ -70,8 +69,7 @@ main() { gh pr create --title "$PR_TITLE" \ --body "$PR_BODY" \ --head "$TEMP_BRANCH" \ - --base default + --base "$PR_BASE_BRANCH" } - main \ No newline at end of file