diff --git a/.github/workflows/reusable_build_sample_apps.yml b/.github/workflows/reusable_build_sample_apps.yml index b300f933..e22c4551 100644 --- a/.github/workflows/reusable_build_sample_apps.yml +++ b/.github/workflows/reusable_build_sample_apps.yml @@ -31,11 +31,11 @@ jobs: - "kotlin_compose" include: # Add additional variables to each sample app build: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategymatrixinclude - sample-app: "java_layout" - cio-cdpapikey-secret-key: ${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY }} - cio-siteid-secret-key: ${{ secrets.CUSTOMERIO_JAVA_WORKSPACE_SITE_ID }} + cio-cdpapikey-secret-key: "CUSTOMERIO_JAVA_WORKSPACE_CDP_API_KEY" + cio-siteid-secret-key: "CUSTOMERIO_JAVA_WORKSPACE_SITE_ID" - sample-app: "kotlin_compose" - cio-cdpapikey-secret-key: ${{ secrets.CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY }} - cio-siteid-secret-key: ${{ secrets.CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID }} + cio-cdpapikey-secret-key: "CUSTOMERIO_KOTLIN_WORKSPACE_CDP_API_KEY" + cio-siteid-secret-key: "CUSTOMERIO_KOTLIN_WORKSPACE_SITE_ID" name: Building app...${{ matrix.sample-app }} steps: @@ -67,8 +67,8 @@ jobs: - name: Setup local.properties file for sample app run: | touch "samples/local.properties" - echo "cdpApiKey=${{ matrix.cio-cdpapikey-secret-key }}" >> "samples/local.properties" - echo "siteId=${{ matrix.cio-siteid-secret-key }}" >> "samples/local.properties" + echo "cdpApiKey=${{ secrets[matrix.cio-cdpapikey-secret-key] }}" >> "samples/local.properties" + echo "siteId=${{ secrets[matrix.cio-siteid-secret-key] }}" >> "samples/local.properties" if [ "${{ inputs.use_latest_sdk_version == true }}" ]; then echo "sdkVersion=${{ steps.latest-sdk-version-step.outputs.LATEST_TAG }}" >> "samples/local.properties" fi