run buildscript-maintenance.yml on all branch pushes

This commit is contained in:
Telan committed 2021-11-12 20:57:53 +02:00
1 parent c926328a0e
commit 9e47698f90
2 files changed
+3 -7

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
echo "Currently only ${GITHUB_REF_NAME}"
git checkout $GITHUB_REF_NAME
echo "Currently on ${GITHUB_REF##*/}"
git checkout ${GITHUB_REF##*/}
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