diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 7e16e9a..e58ec3b 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -87,7 +87,6 @@ jobs: echo "RELEASE_NOTE_TEXT<> $GITHUB_ENV echo $RELEASE_NOTE >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - echo "APP_ID=$(if [ '${{ inputs.buildType }}' == 'release' ]; then echo '${{ secrets.APP_ID_RELEASE }}'; else echo '${{ secrets.APP_ID_DEBUG }}'; fi)" >> $GITHUB_ENV # - name: Execute validations # run: ./gradlew executeValidations - name: Debug RELEASE_NOTE @@ -110,7 +109,12 @@ jobs: - name: upload artifact to Firebase App Distribution uses: wzieba/Firebase-Distribution-Github-Action@v1 with: - appId: ${{ secrets.APP_ID_DEBUG }} + appId: | + if [[ ${{ inputs.buildType || 'debug' }} == 'debug' ]]; then + ${{ secrets.APP_ID_DEBUG }} + else + ${{ secrets.APP_ID_RELEASE }} + fi serviceCredentialsFileContent: ${{ secrets.FIREBASE_TOKEN }} groups: ${{ inputs.groupTester || 'qa' }} releaseNotes: $RELEASE_NOTE_TEXT