update github ci/cd scripts

This commit is contained in:
InsanusMokrassar committed 2024-06-28 13:28:12 +06:00
1 parent e3958aff3f
commit ad967c002a
2 files changed
+2

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ jobs:
java-version: 17
- name: Rewrite version
run: |
printf "\norg.gradle.jvmargs=-Xmx1g -Xms500m\nkotlin.daemon.jvmargs=-Xmx1g -Xms500m\norg.gradle.daemon=false" >> gradle.properties
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp
rm gradle.properties
+1
View File
@@ -16,6 +16,7 @@ jobs:
java-version: 17
- name: Rewrite version
run: |
printf "\norg.gradle.jvmargs=-Xmx1g -Xms500m\nkotlin.daemon.jvmargs=-Xmx1g -Xms500m\norg.gradle.daemon=false" >> gradle.properties
branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`"
if [[ "$branch" != "master" ]]; then
cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp