Fix extracting of fabric' secret key

This commit is contained in:
Victor Shabanov 2018-10-22 16:53:23 +03:00
parent 8f198d724c
commit 901f8a2d8a
1 changed files with 4 additions and 1 deletions

View File

@ -25,8 +25,11 @@ end
after_all do |lane, options|
if options[:uploadToFabric]
appName = options[:appName] || $appName
token = sh("cat ../#{appName}.xcodeproj/project.pbxproj | grep 'Fabric/run' | awk '{print $4}' | tr -d '\n'")
secret = sh("cat ../#{appName}.xcodeproj/project.pbxproj | grep 'Fabric/run' | awk '{print $5}' | sed 's/..$//' | tr -d '\n'")
extractSecret = "cat ../#{appName}.xcodeproj/project.pbxproj | grep 'Fabric/run' | awk '{print $5}' | sed 's/..$//' | tr -d '\n'"
secret = sh("printf '$(#{extractSecret})'")
releaseNotesFile = "release-notes.txt"
sh("touch ../#{releaseNotesFile}")