Skip to content

Commit 8e5f3a4

Browse files
committed
logic 2
1 parent ce85d69 commit 8e5f3a4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,12 @@ runs:
101101
- name: Compute VERSIONCODE
102102
id: compute
103103
shell: bash
104-
env:
105-
LATEST_VERSIONCODE: ${{ steps.compute-versioncode-ios.outputs.LATEST_VERSIONCODE }} || ${{ steps.compute-versioncode-android.outputs.LATEST_VERSIONCODE }}
106104
run: |
105+
VERSION_IOS="${{ steps.compute-versioncode-ios.outputs.LATEST_VERSIONCODE }}"
106+
VERSION_ANDROID="${{ steps.compute-versioncode-android.outputs.LATEST_VERSIONCODE }}"
107+
108+
LATEST_VERSIONCODE="${VERSION_IOS:-$VERSION_ANDROID}"
109+
107110
VERSIONCODE=$((LATEST_VERSIONCODE + 1))
108111
echo "VERSIONCODE=$VERSIONCODE" >> $GITHUB_OUTPUT
109112

0 commit comments

Comments
 (0)