File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 45
45
run : bundle exec fastlane ios pod_trunk_push
46
46
env :
47
47
COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
48
+
49
+ - name : slack notification
50
+ run : bundle exec fastlane ios slack version:${{ github.event.inputs.version_number }} changelog_section:${{ github.event.inputs.changelog_section }} slack_webhook:${{ secrets.SLACK_WEBHOOK }}
Original file line number Diff line number Diff line change @@ -109,4 +109,22 @@ platform :ios do
109
109
pod_push ( path : "Iterable-iOS-AppExtensions.podspec" , allow_warnings : true )
110
110
pod_push ( path : "Iterable-iOS-SDK.podspec" , allow_warnings : true )
111
111
end
112
+
113
+ desc "slack message"
114
+ lane :slack do |options |
115
+ version = options [ :version ]
116
+ changelog_section = options [ :changelog_section ]
117
+ slack_webhook = options [ :slack_webhook ]
118
+
119
+ read_changelog (
120
+ changelog_path : 'CHANGELOG.md' ,
121
+ section_identifier : "[#{ changelog_section } ]" ,
122
+ )
123
+ emojified_changelog = emojify_changelog # Emojify the output of `read_changelog` action
124
+
125
+ slack (
126
+ message : ":appleinc: *iOS SDK #{ version } * has been released, which includes the following: #{ emojified_changelog } " ,
127
+ slack_url : slack_webhook ,
128
+ )
129
+ end
112
130
end
You can’t perform that action at this time.
0 commit comments