Skip to content

Commit

Permalink
Merge pull request #84 from ZeroGachis/fix/android-version
Browse files Browse the repository at this point in the history
🐛 fix create APK on PR with last version
  • Loading branch information
ulricden authored Mar 11, 2024
2 parents 74b2b11 + 3f8e479 commit 202c700
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-apk-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ jobs:
run: aws s3 cp s3://${{steps.vault.outputs.KEYSTORE_BUCKET_S3 }}/github-actions/${{ env.smartway_keystore_name }} android/app/${{ env.smartway_keystore_name }}

- name: Update android versions
if: ${{steps.get-existing-apk.outputs.need-new-apk == 'true'}}
if: ${{steps.get-existing-apk.outputs.need-new-apk == 'true'}} or ${{ inputs.environment == 'pullrequest' }}
uses: mingjun97/file-regex-replace@v1
with:
regex: 'versionCode ([\d]+)'
replacement: "versionCode ${{ inputs.version-code }}"
include: "^android/app/build.gradle"

- name: Modify Android applicationId
if: ${{steps.get-existing-apk.outputs.need-new-apk == 'true'}}
if: ${{steps.get-existing-apk.outputs.need-new-apk == 'true'}} or ${{ inputs.environment == 'pullrequest' }}
uses: mingjun97/file-regex-replace@v1
with:
regex: 'applicationId "([\w\.]+)"'
Expand Down

0 comments on commit 202c700

Please sign in to comment.