From 20063e8252981b8b863b0093ffc7eb07945fc88a Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Wed, 10 Sep 2025 09:07:11 -0500 Subject: [PATCH] chore(release): Automate changelog generation for pre-releases This commit introduces a new step in the release workflow to automatically generate a changelog file for pre-releases (closed and open testing tracks). The changelog file will contain a link to the GitHub release notes for detailed information. Additionally, the GitHub release is no longer created as a draft. Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> (cherry picked from commit 71e7c6b7e92e74d9c0a6bac7667a6ee9a651d965) --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21e7bdc03..090bc231c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -105,6 +105,15 @@ jobs: ruby-version: '3.2' bundler-cache: true + - name: Generate Changelog for Pre-Releases + if: contains(github.ref_name, '-closed') || contains(github.ref_name, '-open') + env: + APP_VERSION_CODE: ${{ needs.prepare-build-info.outputs.APP_VERSION_CODE }} + run: | + CHANGELOG_PATH="./fastlane/metadata/android/en-US/changelogs/${APP_VERSION_CODE}.txt" + echo "For a detailed list of changes, please see the GitHub release notes:" > $CHANGELOG_PATH + echo "https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}" >> $CHANGELOG_PATH + - name: Determine Fastlane Lane id: fastlane_lane run: | @@ -224,7 +233,7 @@ jobs: ./google/bundle/app-google-release.aab ./google/apk/app-google-release.apk ./fdroid/app-fdroid-release.apk - draft: true + draft: false prerelease: ${{ contains(github.ref_name, '-internal') || contains(github.ref_name, '-closed') || contains(github.ref_name, '-open') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}