diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh index cd60431..ec9e040 100755 --- a/.github/scripts/update-version.sh +++ b/.github/scripts/update-version.sh @@ -3,7 +3,7 @@ if [ ! -z $(git diff --name-only HEAD HEAD~1 | grep build.gradle) ]; then sed --in-place "s!//version:.*!//version: $new_version!g" build.gradle git add build.gradle git commit -m "[ci skip] update build script version to $new_version" - git push origin ${GITHUB_REF##*/} + git push origin HEAD:${GITHUB_REF##*/} echo "Updated buildscript version to $new_version"; else echo "Ignored buildscript version update: no changes detected" diff --git a/build.gradle b/build.gradle index 696fda4..715ee07 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: commit hash placeholder; dummy changes to test automatic version update +//version: commit hash placeholder /* DO NOT CHANGE THIS FILE!