diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 89e5da1..2b3420b 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -20,6 +20,11 @@ on: - all - qa - production + releaseNotes: + description: 'Release notes' + required: true + default: 'Update' + type: string push: branches: - develop @@ -51,6 +56,12 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Create file + run: cat /home/runner/work/MBCGroup/MBCGroup/app/google-services.json | base64 + - name: Putting data + env: + DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: echo $DATA > /home/runner/work/MBCGroup/MBCGroup/app/google-services.json - name: Configuration Local.properties env: SHARED_PREFERENCES_NAME: ${{ secrets.SHARED_PREFERENCES_NAME }} @@ -70,6 +81,12 @@ jobs: else ${{secrets.APP_ID_RELEASE}} fi + RELEASE_NOTE: | + if [[ "${{ inputs.releaseNotes }}" == "" ]]; then + cat release_notes.txt + else + ${{inputs.releaseNotes}} + fi run: | echo "SHARED_PREFERENCES_NAME=$SHARED_PREFERENCES_NAME" >> local.properties echo "BASE_URL=$BASE_URL" >> local.properties @@ -89,6 +106,7 @@ jobs: appId: $APP_ID token: ${{ secrets.FIREBASE_TOKEN }} groups: ${{ inputs.groupTester }} + releaseNotesFile: $RELEASE_NOTE file: app/build/outputs/apk/${{ inputs.buildType }}/app-${{ inputs.buildType }}.apk - name: Upload APK artifact uses: actions/upload-artifact@v2 diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a4e28af..3806616 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -93,6 +93,7 @@ configure { releaseNotesFile = "${projectDir}/../release_notes.txt" groups = getLocalProperty("TESTERS_GROUP", "") } + dependencies { // Dagger