Skip to content

Commit 2c0ca3b

Browse files
committed
Change logic
1 parent 8e5f3a4 commit 2c0ca3b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/actions/generate-version-code/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ runs:
7878
if: ${{ inputs.os == 'ios' }}
7979
shell: bash
8080
run: |
81-
VERSIONCODE=$(bundle exec fastlane ios get_testflight_version | tail -n1)
81+
VERSIONCODE=$(bundle exec fastlane ios get_testflight_version | grep 'VERSIONCODE=' | cut -d '=' -f2)
8282
echo "LATEST_VERSIONCODE=$VERSIONCODE" >> $GITHUB_OUTPUT
8383
working-directory: ios
8484
env:
@@ -94,7 +94,7 @@ runs:
9494
if: ${{ inputs.os == 'android' }}
9595
shell: bash
9696
run: |
97-
VERSIONCODE=$(bundle exec fastlane android version_code | tail -n1)
97+
VERSIONCODE=$(bundle exec fastlane android version_code | grep 'VERSIONCODE=' | cut -d '=' -f2)
9898
echo "LATEST_VERSIONCODE=$VERSIONCODE" >> $GITHUB_OUTPUT
9999
working-directory: android
100100

android/fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ platform :android do
7373
UI.success("Highest: #{highest_version}")
7474
UI.success("Highest + 1: #{highest_version + 1}")
7575

76-
puts highest_version
76+
puts "VERSIONCODE=#{highest_version}"
7777
end
7878

7979
desc "Upload App to Play Store Internal (Circle CI)"

ios/fastlane/Fastfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ platform :ios do
3838
)
3939

4040
UI.message("Latest version: #{latest_version}")
41-
puts latest_version
41+
puts "VERSIONCODE=#{latest_version}"
4242
end
4343

4444
desc "Submit a new Beta Build to Apple TestFlight (Circle CI)"

0 commit comments

Comments
 (0)