Skip to content

Commit 3a55ba7

Browse files
committed
Add telegram notifications for fastlane
1 parent 768714c commit 3a55ba7

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ GEM
112112
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
113113
fastlane-plugin-sentry (1.27.1)
114114
os (~> 1.1, >= 1.1.4)
115-
fastlane-plugin-versioning (0.7.1)
115+
fastlane-plugin-telegram (0.1.4)
116116
fastlane-plugin-xcconfig (2.1.0)
117117
fastlane-sirp (1.0.0)
118118
sysrandom (~> 1.0)
@@ -222,7 +222,7 @@ PLATFORMS
222222
DEPENDENCIES
223223
fastlane
224224
fastlane-plugin-sentry
225-
fastlane-plugin-versioning
225+
fastlane-plugin-telegram
226226
fastlane-plugin-xcconfig
227227

228228
BUNDLED WITH

fastlane/Fastfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ platform :ios do
8686
end
8787
end
8888

89-
desc ""
89+
desc "Builds and signs ipa file"
9090
lane :build_ipa do
9191
version = get_xcconfig_value(
9292
path: 'Configs/App.xcconfig',
@@ -155,6 +155,15 @@ platform :ios do
155155
message: "Build is on TestFlight",
156156
content_image: "Images/logo.png"
157157
)
158+
159+
version = get_xcconfig_value(path: 'Configs/App.xcconfig', name: 'MARKETING_VERSION')
160+
build = sh("git rev-list --all --count").chomp.strip
161+
162+
telegram(
163+
token: ENV['TG_BOT_TOKEN'],
164+
chat_id: ENV['TG_CHAT_ID'],
165+
text: "Версия #{version} (#{build}) загружена на TestFlight"
166+
)
158167
end
159168

160169
# --------------------------------------------------

fastlane/Pluginfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# Ensure this file is checked in to source control!
44
gem 'fastlane-plugin-sentry'
55
gem 'fastlane-plugin-xcconfig'
6+
gem 'fastlane-plugin-telegram'

0 commit comments

Comments
 (0)