From ba127d1f93f82765f4f4dd19e51a2a83ca263da5 Mon Sep 17 00:00:00 2001 From: Doan Dinh Date: Fri, 27 Oct 2023 18:30:52 +0700 Subject: [PATCH] [#198] Add Generate release notes for ios deployment --- .github/workflows/ios_deploy_staging_to_firebase.yml | 6 +++++- .../.github/workflows/ios_deploy_staging_to_firebase.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios_deploy_staging_to_firebase.yml b/.github/workflows/ios_deploy_staging_to_firebase.yml index 5d725f5d..61556cf0 100644 --- a/.github/workflows/ios_deploy_staging_to_firebase.yml +++ b/.github/workflows/ios_deploy_staging_to_firebase.yml @@ -52,7 +52,11 @@ jobs: ENV: ${{ secrets.ENV }} run: | echo -e "$ENV" > .env.staging - echo "RELEASE_NOTES_CONTENT"=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_ENV + + - name: Generate release notes + id: generate-release-notes + run: | + echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_ENV - name: Run code generator run: flutter packages pub run build_runner build --delete-conflicting-outputs diff --git a/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml b/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml index a2ec7abc..d17de906 100644 --- a/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml +++ b/bricks/template/__brick__/.github/workflows/ios_deploy_staging_to_firebase.yml @@ -45,7 +45,11 @@ jobs: ENV: ${{#mustacheCase}}secrets.ENV{{/mustacheCase}} run: | echo -e "$ENV" > .env.staging - echo "RELEASE_NOTE_CONTENT"="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))"" >> $GITHUB_ENV + + - name: Generate release notes + id: generate-release-notes + run: | + echo "RELEASE_NOTE_CONTENT=$((git log -1 --merges | grep "\[") && echo "" || echo $(git log -1 --merges --format=%B))" >> $GITHUB_ENV - name: Run code generator run: flutter packages pub run build_runner build --delete-conflicting-outputs