Skip to content

Commit 63b39e7

Browse files
committed
fix: ci - use Gradle properties for SDK version extraction in release
Change the script to extract the release version number
1 parent 07c7163 commit 63b39e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
- name: "Get SDK version for isolated kits"
155155
if: ${{ github.event.inputs.dryRun == 'false'}}
156156
id: sdk-version
157-
run: echo "version=$(grep "version = " build.gradle | head -1 | sed "s/.*'\(.*\)-SNAPSHOT'/\1/")" >> $GITHUB_OUTPUT
157+
run: echo "version=$(./gradlew -PisRelease=true -q properties | grep '^version:' | awk '{print $2}')" >> $GITHUB_OUTPUT
158158
- name: "Publish Isolated Kits (urbanairship-kit)"
159159
if: ${{ github.event.inputs.dryRun == 'false'}}
160160
working-directory: kits/urbanairship-kit

0 commit comments

Comments
 (0)