Skip to content

Commit

Permalink
Ignore pre-release for sync target on sync_default_gems
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 10, 2022
1 parent 561dda9 commit 0024a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/sync_default_gems.rb
Expand Up @@ -555,7 +555,7 @@ def update_default_gems(gem, release: false)
`git fetch origin --tags`

if release
last_release = `git tag`.chomp.split.last
last_release = `git tag`.chomp.split.delete_if{|v| v =~ /pre|beta/ }.last
`git checkout #{last_release}`
else
`git checkout master`
Expand Down

0 comments on commit 0024a76

Please sign in to comment.