mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-12 00:17:47 +00:00
build: fix maintenance script replacing too much strings
This commit is contained in:
1 parent
fa415ec9e6
commit
ea29d6853b
2 files changed
+6
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
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
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user