From ca7464a6fac5c514ff54b0625f1cc711b6dfe92c Mon Sep 17 00:00:00 2001 From: michaelbel Date: Wed, 30 Oct 2024 21:10:35 +0300 Subject: [PATCH] Update project --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6016703e..2db37cf2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,14 @@ jobs: distribution: 'temurin' java-version: '21' + - name: extract version name + id: version_name + run: echo "VERSION_NAME=$(grep 'versionName' app/build.gradle.kts | awk '{print $3}' | tr -d '\"')" >> $GITHUB_ENV + + - name: extract version code + id: version_code + run: echo "VERSION_CODE=$(grep 'versionCode' app/build.gradle.kts | awk '{print $3}')" >> $GITHUB_ENV + - name: cache gradle dependencies uses: actions/cache@v3 with: @@ -68,8 +76,7 @@ jobs: disable_notification: false disable_web_page_preview: true message: | - ✅ *Версия(Сборка)* + ✅ *$VERSION_NAME($VERSION_CODE)* *Ветка:* ${{ github.ref_name }} *Коммит:* ${{ github.sha }} - *Коммит2:* ${GITHUB_SHA::7} document: app/build/outputs/apk/**/*.apk \ No newline at end of file