diff --git a/.cicdtemplate/.codemagic/codemagic.yaml b/.cicdtemplate/.codemagic/codemagic.yaml index 5f4158a1..c21301bb 100644 --- a/.cicdtemplate/.codemagic/codemagic.yaml +++ b/.cicdtemplate/.codemagic/codemagic.yaml @@ -97,7 +97,7 @@ workflows: - name: Build APK for production script: | ./gradlew assembleProductionDebug -PversionCode=$BUILD_NUMBER - - name: Generating release notes with git commits from the latest tag + - name: Generate release notes with git commits from the latest tag script: | RELEASE_NOTE_CONTENT="$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")" echo "$RELEASE_NOTE_CONTENT" | tee release_notes.txt diff --git a/codemagic.yaml b/codemagic.yaml index d8b0024e..cf26e32e 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -63,7 +63,7 @@ workflows: working_directory: ./template-compose script: | ./gradlew assembleStagingDebug -PversionCode=$BUILD_NUMBER - - name: Generating release notes with the latest git commit + - name: Generate release notes with the latest git commit script: | RELEASE_NOTE_CONTENT="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))" echo "$RELEASE_NOTE_CONTENT" | tee release_notes.txt @@ -101,7 +101,7 @@ workflows: working_directory: ./template-compose script: | ./gradlew assembleProductionDebug -PversionCode=$BUILD_NUMBER - - name: Generating release notes with git commits from the latest tag + - name: Generate release notes with git commits from the latest tag script: | RELEASE_NOTE_CONTENT="$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")" echo "$RELEASE_NOTE_CONTENT" | tee release_notes.txt