Skip to content

Commit 9a0b6e8

Browse files
committed
add slack
1 parent 8193809 commit 9a0b6e8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ios-sdk-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,6 @@ jobs:
4545
run: bundle exec fastlane ios pod_trunk_push
4646
env:
4747
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 }}

fastlane/Fastfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,22 @@ platform :ios do
109109
pod_push(path: "Iterable-iOS-AppExtensions.podspec", allow_warnings: true)
110110
pod_push(path: "Iterable-iOS-SDK.podspec", allow_warnings: true)
111111
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
112130
end

0 commit comments

Comments
 (0)