From 08c0f6614bc3cb08b75089f2d9352a5b110d05eb Mon Sep 17 00:00:00 2001 From: Cesar Willy Mamani Canaza Date: Fri, 19 Jan 2024 16:03:13 -0600 Subject: [PATCH] Update debug.yml --- .github/workflows/debug.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index e58ec3b..0bd7fc8 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -87,6 +87,14 @@ jobs: echo "RELEASE_NOTE_TEXT<> $GITHUB_ENV echo $RELEASE_NOTE >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV + - name: Set App ID + id: set_app_id + run: | + if [[ "${{ inputs.buildType || 'debug' }}" == "debug" ]]; then + echo "APP_ID=${{ secrets.APP_ID_DEBUG }}" >> $GITHUB_ENV + else + echo "APP_ID=${{ secrets.APP_ID_RELEASE }}" >> $GITHUB_ENV + fi # - name: Execute validations # run: ./gradlew executeValidations - name: Debug RELEASE_NOTE @@ -109,15 +117,10 @@ jobs: - name: upload artifact to Firebase App Distribution uses: wzieba/Firebase-Distribution-Github-Action@v1 with: - appId: | - if [[ ${{ inputs.buildType || 'debug' }} == 'debug' ]]; then - ${{ secrets.APP_ID_DEBUG }} - else - ${{ secrets.APP_ID_RELEASE }} - fi + appId: ${{ env.APP_ID }} serviceCredentialsFileContent: ${{ secrets.FIREBASE_TOKEN }} groups: ${{ inputs.groupTester || 'qa' }} - releaseNotes: $RELEASE_NOTE_TEXT + releaseNotes: ${{ inputs.releaseNotes || (cat release_notes.txt) }} file: app/build/outputs/apk/${{ inputs.buildType || 'debug' }}/app-${{ inputs.buildType || 'debug' }}.apk debug: true - name: Upload APK artifact