Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Oct 30, 2024
1 parent 8baf97a commit ca7464a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit ca7464a

Please sign in to comment.