Skip to content

Commit

Permalink
Inherit secrets from caller workflows instead of passing all of them
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoud-elmorabea committed Oct 30, 2024
1 parent f9f32c7 commit 6024e63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/build-sample-app-for-sdk-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ jobs:
uses: ./.github/workflows/reusable_build_sample_apps.yml
with:
use_latest_sdk_version: true
secrets:
CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY: ${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY }}
CUSTOMERIO_JAVA_WORKSPACE_SITE_ID: ${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_SITE_ID }}
CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY: ${{ secrets.CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY }}
CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID: ${{ secrets.CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID }}
ANDROID_SIGNING_ALIAS: ${{ secrets.ANDROID_SIGNING_ALIAS }}
ANDROID_SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
ANDROID_SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}
secrets: inherit
10 changes: 1 addition & 9 deletions .github/workflows/build-sample-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,5 @@ jobs:
uses: ./.github/workflows/reusable_build_sample_apps.yml
with:
use_latest_sdk_version: false
secrets:
CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY: ${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY }}
CUSTOMERIO_JAVA_WORKSPACE_SITE_ID: ${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_SITE_ID }}
CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY: ${{ secrets.CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY }}
CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID: ${{ secrets.CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID }}
ANDROID_SIGNING_ALIAS: ${{ secrets.ANDROID_SIGNING_ALIAS }}
ANDROID_SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
ANDROID_SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_SIGNING_STORE_PASSWORD }}
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }}
secrets: inherit

8 changes: 8 additions & 0 deletions .github/workflows/reusable_build_sample_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ on:
default: false
secrets:
CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY:
required: true
CUSTOMERIO_JAVA_WORKSPACE_SITE_ID:
required: true
CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY:
required: true
CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID:
required: true
ANDROID_SIGNING_ALIAS:
required: true
ANDROID_SIGNING_KEY_PASSWORD:
required: true
ANDROID_SIGNING_STORE_PASSWORD:
required: true
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64:
required: true

jobs:
build_sample_apps:
Expand Down

0 comments on commit 6024e63

Please sign in to comment.