Commit 4237dca4 authored by Vadim Vlasov's avatar Vadim Vlasov

Cache path fixed

parent d18024f1
...@@ -39,7 +39,7 @@ module Fastlane ...@@ -39,7 +39,7 @@ module Fastlane
type: String), type: String),
FastlaneCore::ConfigItem.new(key: :cache_storage_path, FastlaneCore::ConfigItem.new(key: :cache_storage_path,
optional: true, optional: true,
default_value: "#{Dir.home}/Data/Cache/#{ENV['CI_PROJECT_PATH_SLUG']}/Library", default_value: "#{Dir.home}/Data/Cache/#{ENV['CI_PROJECT_PATH']}/Library",
env_name: "CACHE_STORAGE_PATH", env_name: "CACHE_STORAGE_PATH",
description: "Storage path from where the cache will be restored", description: "Storage path from where the cache will be restored",
type: String), type: String),
......
...@@ -7,7 +7,7 @@ module Fastlane ...@@ -7,7 +7,7 @@ module Fastlane
return return
end end
branch = `git rev-parse --abbrev-ref HEAD`.strip branch = ENV['CI_COMMIT_BRANCH']
allowed_update_branches = params[:allowed_update_branches] allowed_update_branches = params[:allowed_update_branches]
directory = params[:directory] directory = params[:directory]
cache_storage_path = params[:cache_storage_path] cache_storage_path = params[:cache_storage_path]
...@@ -23,7 +23,7 @@ module Fastlane ...@@ -23,7 +23,7 @@ module Fastlane
UI.success("Cache saved in #{cache_storage_path}") UI.success("Cache saved in #{cache_storage_path}")
else else
UI.message("Cache not updated as the branch is not in the allowed update list") UI.message("Cache not updated as the branch (#{branch}) is not in the allowed update list")
end end
end end
...@@ -50,7 +50,7 @@ module Fastlane ...@@ -50,7 +50,7 @@ module Fastlane
FastlaneCore::ConfigItem.new(key: :cache_storage_path, FastlaneCore::ConfigItem.new(key: :cache_storage_path,
description: "Storage path where the cache will be saved", description: "Storage path where the cache will be saved",
optional: true, optional: true,
default_value: "#{Dir.home}/Data/Cache/#{ENV['CI_PROJECT_PATH_SLUG']}/Library", default_value: "#{Dir.home}/Data/Cache/#{ENV['CI_PROJECT_PATH']}/Library",
env_name: "CACHE_STORAGE_PATH", env_name: "CACHE_STORAGE_PATH",
type: String), type: String),
FastlaneCore::ConfigItem.new(key: :ignore_cache, FastlaneCore::ConfigItem.new(key: :ignore_cache,
......
module Fastlane module Fastlane
module Furylion module Furylion
VERSION = "1.1.5" VERSION = "1.1.6"
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment