Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
talosross authored Nov 25, 2023
1 parent a758b08 commit f482689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
id: extract-versions
run: |
set -e
VERSION_NAME=$(grep -E 'versionName\s' app/build.gradle | sed -n 's/.*"([^"]+)".*/\1/p')
VERSION_CODE=$(grep 'versionCode' app/build.gradle | awk '{print $2}')
VERSION_NAME=$(grep -E 'versionName\s' app/build.gradle.kts | sed -n 's/.*"([^"]+)".*/\1/p')
VERSION_CODE=$(grep 'versionCode' app/build.gradle.kts | awk '{print $2}')
echo "VERSION_NAME=${VERSION_NAME}" >> $GITHUB_ENV
echo "VERSION_CODE=${VERSION_CODE}" >> $GITHUB_ENV
Expand Down

0 comments on commit f482689

Please sign in to comment.