mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-20 04:09:43 +00:00
build: update main build script to test automatic version update
This commit is contained in:
1 parent
9e47698f90
commit
edb7416b75
2 files changed
+1
-3
No files matched your search
@@ -1,5 +1,3 @@
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user