Skip to content

Commit

Permalink
Leverage implicit EMERGE_API_TOKEN env variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rbro112 committed Sep 12, 2024
1 parent 579fdee commit fb15473
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Upload release bundle to Emerge
run: ./gradlew :paymentsheet-example:emergeUploadReleaseAab
env:
EMERGE_API_KEY: ${{ secrets.EMERGE_API_KEY }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: pull_request

check-for-untranslated-strings:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/financialconnections_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
- name: Upload release bundle to Emerge
run: ./gradlew :financial-connections-example:emergeUploadReleaseAab
env:
EMERGE_API_KEY: ${{ secrets.EMERGE_API_KEY }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: release

2 changes: 1 addition & 1 deletion .github/workflows/identity_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ jobs:
- name: Upload release bundle to Emerge
run: ./gradlew :identity-example:emergeUploadTheme1ReleaseAab
env:
EMERGE_API_KEY: ${{ secrets.EMERGE_API_KEY }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: pull_request
6 changes: 3 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Upload Identity example release bundle to Emerge
run: ./gradlew :identity-example:emergeUploadReleaseAab
env:
EMERGE_API_KEY: ${{ secrets.EMERGE_API_KEY }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: push
upload-financial-connections:
runs-on: ubuntu-latest
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Upload Financial Connections example release bundle to Emerge
run: ./gradlew :financial-connections-example:emergeUploadReleaseAab
env:
EMERGE_API_KEY: ${{ secrets.EMERGE_API_KEY }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: push
upload-payment-sheet:
runs-on: ubuntu-latest
Expand All @@ -36,5 +36,5 @@ jobs:
- name: Upload Payment Sheet example release bundle to Emerge
run: ./gradlew :paymentsheet-example:emergeUploadReleaseAab
env:
EMERGE_API_KEY: ${{ secrets.EMERGE_API_KEY }}
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: push
2 changes: 1 addition & 1 deletion financial-connections-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
def testEnvironment = System.getenv("test_environment") ?: "production"

emerge {
apiToken.set(System.getenv("EMERGE_API_KEY"))
// Api token is implicitly set to the EMERGE_API_TOKEN env variable

size {
tag.set(System.getenv("EMERGE_TAG"))
Expand Down
2 changes: 1 addition & 1 deletion identity-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
assemble.dependsOn('lint')

emerge {
apiToken.set(System.getenv("EMERGE_API_KEY"))
// Api token is implicitly set to the EMERGE_API_TOKEN env variable

size {
tag.set(System.getenv("EMERGE_TAG"))
Expand Down
2 changes: 1 addition & 1 deletion paymentsheet-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def getGooglePlacesApiKey() {
}

emerge {
apiToken.set(System.getenv("EMERGE_API_KEY"))
// Api token is implicitly set to the EMERGE_API_TOKEN env variable

size {
tag.set(System.getenv("EMERGE_TAG"))
Expand Down

0 comments on commit fb15473

Please sign in to comment.