File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
lib/fastlane/plugin/wpmreleasetoolkit Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ def self.run(params)
5
5
UI . message "Updating project localisation..."
6
6
7
7
require_relative '../../helper/ios/ios_git_helper.rb'
8
+ other_action . cocoapods ( )
8
9
Fastlane ::Helpers ::IosGitHelper . localize_project ( )
9
10
10
11
UI . message "Done."
Original file line number Diff line number Diff line change @@ -69,12 +69,12 @@ def self.final_tag(version)
69
69
def self . localize_project ( )
70
70
Action . sh ( "cd #{ ENV [ "PROJECT_ROOT_FOLDER" ] } && ./Scripts/localize.py" )
71
71
Action . sh ( "git add #{ ENV [ "PROJECT_ROOT_FOLDER" ] } #{ ENV [ "PROJECT_NAME" ] } *.lproj/Localizable.strings" )
72
- is_repo_clean = `git status --porcelain` . empty?
72
+ is_repo_clean = `git status --porcelain` . empty?
73
73
if is_repo_clean then
74
- Action . sh ( "git diff-index --quiet HEAD || git commit -m \" Updates strings for localization\" " )
75
- Action . sh ( "git push origin HEAD" )
74
+ UI . message ( "No new strings, skipping commit." )
76
75
else
77
- UI . message ( "No new strings, skipping commit." )
76
+ Action . sh ( "git commit -m \" Updates strings for localization\" " )
77
+ Action . sh ( "git push origin HEAD" )
78
78
end
79
79
end
80
80
You can’t perform that action at this time.
0 commit comments