Skip to content

Commit 42cef7f

Browse files
author
Honza Dvorsky
committed
changelog
1 parent ac1bf9c commit 42cef7f

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

fastlane/Fastfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ private_lane :release_gem do |options|
5959
end
6060

6161
private_lane :changelog do
62-
# regenerate changelog
63-
ensure_git_status_clean
64-
sh "cd .. && github_changelog_generator -t $GITHUB_TOKEN"
62+
# regenerate changelog
63+
ensure_git_status_clean
64+
sh "cd .. && github_changelog_generator -t $GITHUB_TOKEN"
6565

66-
# commit the changes
67-
sh "cd .. && git commit -am 'changelog' && git push"
68-
ensure_git_status_clean
66+
# commit the changes
67+
sh "cd .. && git commit -am 'changelog' && git push"
68+
ensure_git_status_clean
6969
end
7070

7171
private_lane :release_github do |options|
@@ -77,10 +77,8 @@ private_lane :release_github do |options|
7777
raise "GitHub release #{version} already exists!" if github_release
7878

7979
# regenerate changelog
80-
changelog
81-
8280
# open the changelog so that we can copy the changes into clipboard
83-
sh "cd .. && subl CHANGELOG.md"
81+
sh "cd .. && github_changelog_generator -t $GITHUB_TOKEN && subl CHANGELOG.md"
8482

8583
# ask for details about the release
8684
title = prompt(text: 'Title: ')

0 commit comments

Comments
 (0)