diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 8b1425f64..a5dc55d6e 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -22,7 +22,8 @@ on: type: string description: | iOS changelog: Used for the App Store release notes. If the changelog - is not provided, the deployment for iOS will be skipped. + is not provided, the deployment for iOS will be skipped. Use '\n' for + line breaks. # For web deployments, we don't have a changelog. deploy-web-app: type: boolean @@ -34,6 +35,7 @@ on: description: | Android changelog: Used for the Google Play Store release notes. If the changelog is not provided, the deployment for Android will be skipped. + Use '\n' for line breaks. # Set permissions to none. # @@ -88,9 +90,14 @@ jobs: APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.SHAREZONE_APP_STORE_CONNECT_ISSUER_ID }} APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.SHAREZONE_APP_STORE_CONNECT_PRIVATE_KEY }} run: | + # When passing the changelog from GitHub Actions to the CLI, the line + # breaks are escaped. We need to replace them with actual line breaks. + CHANGELOG="${{ github.event.inputs.ios-changelog }}" + CHANGELOG_WITH_NEW_LINES=$(echo -e "$CHANGELOG" | sed 's/\\n/\\n/g') + sz deploy ios \ --stage beta \ - --whats-new "${{ github.event.inputs.ios-changelog }}" \ + --whats-new "$CHANGELOG_WITH_NEW_LINES" \ --export-options-plist=$HOME/export_options.plist deploy-web-app: @@ -195,6 +202,11 @@ jobs: - name: Deploy run: | + # When passing the changelog from GitHub Actions to the CLI, the line + # breaks are escaped. We need to replace them with actual line breaks. + CHANGELOG="${{ github.event.inputs.android-changelog }}" + CHANGELOG_WITH_NEW_LINES=$(echo -e "$CHANGELOG" | sed 's/\\n/\\n/g') + sz deploy android \ --stage beta \ - --whats-new "${{ github.event.inputs.android-changelog }}" + --whats-new "$CHANGELOG_WITH_NEW_LINES" diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index 00f55e3d0..73af1fb20 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -22,7 +22,8 @@ on: type: string description: | iOS changelog: Used for the App Store release notes. If the changelog - is not provided, the deployment for iOS will be skipped. + is not provided, the deployment for iOS will be skipped. Use '\n' for + line breaks. # For web deployments, we don't have a changelog. deploy-web-app: type: boolean @@ -34,6 +35,7 @@ on: description: | Android changelog: Used for the Google Play Store release notes. If the changelog is not provided, the deployment for Android will be skipped. + Use '\n' for line breaks. # Set permissions to none. # @@ -106,9 +108,14 @@ jobs: APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.SHAREZONE_APP_STORE_CONNECT_ISSUER_ID }} APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.SHAREZONE_APP_STORE_CONNECT_PRIVATE_KEY }} run: | + # When passing the changelog from GitHub Actions to the CLI, the line + # breaks are escaped. We need to replace them with actual line breaks. + CHANGELOG="${{ github.event.inputs.ios-changelog }}" + CHANGELOG_WITH_NEW_LINES=$(echo -e "$CHANGELOG" | sed 's/\\n/\\n/g') + sz deploy ios \ --stage stable \ - --whats-new "${{ github.event.inputs.ios-changelog }}" \ + --whats-new "$CHANGELOG_WITH_NEW_LINES" \ --export-options-plist=$HOME/export_options.plist deploy-web-app: @@ -214,6 +221,11 @@ jobs: - name: Deploy run: | + # When passing the changelog from GitHub Actions to the CLI, the line + # breaks are escaped. We need to replace them with actual line breaks. + CHANGELOG="${{ github.event.inputs.android-changelog }}" + CHANGELOG_WITH_NEW_LINES=$(echo -e "$CHANGELOG" | sed 's/\\n/\\n/g') + sz deploy android \ --stage stable \ - --whats-new "${{ github.event.inputs.android-changelog }}" + --whats-new "$CHANGELOG_WITH_NEW_LINES"