mirror of
https://github.com/bitwarden/android.git
synced 2026-05-22 04:22:11 -05:00
try formatting release notes
This commit is contained in:
17
.github/workflows/publish.yml
vendored
17
.github/workflows/publish.yml
vendored
@@ -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<<EOF" >> $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"
|
||||
|
||||
Reference in New Issue
Block a user