From ceeabe3714483da78ae6e1c8922e5342a7c9820e Mon Sep 17 00:00:00 2001 From: Greg Kurz Date: Wed, 25 Oct 2023 09:56:52 +0200 Subject: [PATCH] release: Allow to test release scripts with an alternate repo We don't want to mess with the official repo when testing a change in the release scripts. Adapt `update-repository-version.sh` to be able to use an alternate repo just like `tag_repos.sh` already does. This means that the following command : $ OWNER="$SOME_ORG" ./update-repository-version.sh -p "$NEW_VERSION" "$BRANCH" will only create a PR in this repo : http://github.com/$SOME_ORG/kata-containers.git Signed-off-by: Greg Kurz --- tools/packaging/release/update-repository-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/packaging/release/update-repository-version.sh b/tools/packaging/release/update-repository-version.sh index e9aa29fa73..dd4a3b9a16 100755 --- a/tools/packaging/release/update-repository-version.sh +++ b/tools/packaging/release/update-repository-version.sh @@ -13,7 +13,8 @@ readonly script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly script_name="$(basename "${BASH_SOURCE[0]}")" readonly tmp_dir=$(mktemp -t -d pr-bump.XXXX) -readonly organization="kata-containers" +OWNER="${OWNER:-kata-containers}" +readonly organization="$OWNER" PUSH="false" GOPATH=${GOPATH:-${HOME}/go}