Skip to content

Commit f205a0c

Browse files
committed
Fix incorrect changelog in release process
The changelog was incorrectly generated before the new tag was created, so the changelog showed old commits. Two new steps have been added: one generates a new tag according to the value saved in $NEW_VERSION on workflow trigger, and another after it fetches all tags. This makes the changelog generation step aware of the new tag and generates it correctly. MOB-1680
1 parent f29c378 commit f205a0c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

bitrise.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,29 @@ workflows:
284284
285285
./gradlew clean
286286
widgetssdk:publishReleasePublicationToSonatypeRepository
287+
- git-tag@1:
288+
inputs:
289+
- tag: $NEW_VERSION
290+
- script@1:
291+
inputs:
292+
- content: >-
293+
#!/usr/bin/env bash
294+
295+
# fail if any commands fails
296+
297+
set -e
298+
299+
# make pipelines' return status equal the last command to exit with
300+
a non-zero status, or zero if all commands exit successfully
301+
302+
set -o pipefail
303+
304+
# debug log
305+
306+
set -x
307+
308+
309+
git fetch --tags
287310
- generate-changelog@0: {}
288311
- github-release@0:
289312
inputs:

0 commit comments

Comments
 (0)