From c926328a0e1cdfd8090175bd0befd48a9054527a Mon Sep 17 00:00:00 2001 From: Telan <13066272+TheElan@users.noreply.github.com> Date: Fri, 12 Nov 2021 20:16:24 +0200 Subject: [PATCH] debug to check if branch name is correctly obtained --- .github/scripts/update-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh index 7005ea5..420439c 100755 --- a/.github/scripts/update-version.sh +++ b/.github/scripts/update-version.sh @@ -1,4 +1,5 @@ -git checkout ${GITHUB_REF##*/} +echo "Currently only ${GITHUB_REF_NAME}" +git checkout $GITHUB_REF_NAME if [ ! -z $(git diff --name-only HEAD HEAD~1 | grep build.gradle) ]; then new_version="$(git log -n1 --format=format:"%H")" sed --in-place "s!//version:.*!//version: $new_version!g" build.gradle