Skip to content

Commit 37bd922

Browse files
committed
chore: release action fix
1 parent a44cdec commit 37bd922

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/config/pre_changelog_hook.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ exports.preVersionGeneration = (version) => {
2222
core.info(`Updated gem info: ${new_gem_info}`);
2323
fs.writeFileSync(gem_info_file, new_gem_info);
2424

25-
const launchOption = {
26-
cwd: GITHUB_WORKSPACE,
27-
env: Object.assign({}, process.env, { 'LANG': 'en_US.UTF-8' })
28-
};
29-
25+
const launchOption = { cwd: GITHUB_WORKSPACE };
3026
childProcess.execSync('bundle config unset deployment', launchOption);
3127
childProcess.execSync('bundle install', launchOption);
32-
childProcess.execSync('bundle exec rake demo', launchOption);
28+
childProcess.execSync('bundle exec rake update --trace', launchOption);
3329
childProcess.execSync('bundle config deployment true', launchOption);
3430
return version;
3531
}

Rakefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ task :demo do
2020
end
2121
end
2222

23+
desc 'Update lock files'
24+
task :update do
25+
system('bundle install', exception: true)
26+
Bundler.with_unbundled_env do
27+
Dir.chdir('example/ios_app') do |path|
28+
system('bundle install', exception: true)
29+
end
30+
end
31+
end
32+
2333
desc 'Publish to cocoapods plugins if not present'
2434
task :publish do
2535
require 'rubygems'
@@ -31,7 +41,9 @@ task :publish do
3141
return if known_plugins.one? { |plugin| plugin['gem'] == gem.name }
3242

3343
require 'github_api'
34-
return if Github.search.issues(q: "#{gem.name} user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title").items.count > 0
44+
return if Github.search.issues(
45+
q: "#{gem.name} user:CocoaPods repo:CocoaPods/cocoapods-plugins in:title"
46+
).items.count > 0
3547
system('pod plugins publish', exception: true)
3648
end
3749

0 commit comments

Comments
 (0)