From b45d03ac22c4d4bed6cb501156aa4895013b508a Mon Sep 17 00:00:00 2001 From: Amy Galles <9685081+AmyLGalles@users.noreply.github.com> Date: Tue, 27 May 2025 15:46:27 -0700 Subject: [PATCH] try formatting release notes --- .github/workflows/publish.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 71cc59a3af..c29b1e6761 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -61,11 +61,6 @@ jobs: # name: test-reports # path: app/build/reports/tests/ - - name: Test Directory Structure - run: | - pwd \ - cat .ruby-version - - name: Log in to Azure uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0 with: @@ -91,6 +86,14 @@ jobs: --name app_beta_upload-keystore.jks --file ${{ github.workspace }}/keystores/app_beta_upload-keystore.jks --output none az storage blob download --account-name $ACCOUNT_NAME --container-name $CONTAINER_NAME \ --name google-services.json --file ${{ github.workspace }}/app/src/standardRelease/google-services.json --output none + - name: Format Release Notes + run: | + FORMATTED_MESSAGE="$(echo "${{ inputs.release-notes }}" | sed 's/\\n/\'$'\n''/g')" + echo "Formatted message with newlines:" + echo "$FORMATTED_MESSAGE" + echo "FORMATTED_MESSAGE<> $GITHUB_ENV + echo "$FORMATTED_MESSAGE" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV - name: Promote Play Store version to production env: @@ -99,7 +102,7 @@ jobs: VERSION_CODE: ${{ inputs.version-code }} ROLLOUT_PERCENTAGE: ${{ inputs.rollout-percentage }} PRODUCT: ${{ inputs.product }} - RELEASE_NOTES: ${{ inputs.release-notes }} + RELEASE_NOTES: FORMATTED_MESSAGE run: | if [ "$PRODUCT" = "Password Manager" ]; then PACKAGE_NAME="com.x8bit.bitwarden" @@ -110,6 +113,8 @@ jobs: exit 1 fi + Release_notes="$RELEASE_NOTES" + bundle exec fastlane updateReleaseNotes \ releaseNotes:"$RELEASE_NOTES" \ versionCode:"$VERSION_CODE"