File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,18 @@ workflows:
87
87
events :
88
88
- push
89
89
branch_patterns :
90
- - pattern : develop
90
+ - pattern : ' develop'
91
91
scripts :
92
92
- *detekt_on_template_compose
93
93
- *unit_test_on_template_compose
94
94
- name : Build APK for staging
95
95
working_directory : ./template-compose
96
96
script : |
97
97
./gradlew assembleStagingDebug -PversionCode=$BUILD_NUMBER
98
+ - name : Generating release notes with the latest git commit
99
+ script : |
100
+ RELEASE_NOTE_CONTENT="$((git log -1 --merges | grep "\[") | grep . && echo "" || echo $(git log -1 --merges --format=%B))"
101
+ echo "$RELEASE_NOTE_CONTENT" | tee release_notes.txt
98
102
artifacts :
99
103
- *artifacts_template_compose
100
104
- *artifacts_staging_apk
@@ -114,14 +118,24 @@ workflows:
114
118
events :
115
119
- push
116
120
branch_patterns :
117
- - pattern : main
121
+ - pattern : ' main'
122
+ environment :
123
+ vars :
124
+ # Increase the clone depth to 50 to cover all commits from the latest tag
125
+ CM_CLONE_DEPTH : 50
126
+ groups :
127
+ - firebase_credentials
118
128
scripts :
119
129
- *detekt_on_template_compose
120
130
- *unit_test_on_template_compose
121
131
- name : Build APK for production
122
132
working_directory : ./template-compose
123
133
script : |
124
134
./gradlew assembleProductionDebug -PversionCode=$BUILD_NUMBER
135
+ - name : Generating release notes with git commits from the latest tag
136
+ script : |
137
+ RELEASE_NOTE_CONTENT="$(git log --merges --pretty=%B $(git describe --abbrev=0 --tags)..HEAD | grep "\[")"
138
+ echo "$RELEASE_NOTE_CONTENT" | tee release_notes.txt
125
139
artifacts :
126
140
- *artifacts_template_compose
127
141
- *artifacts_production_apk
You can’t perform that action at this time.
0 commit comments