Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
quinna-h committed Aug 28, 2024
1 parent 10356a3 commit b03da14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/version_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def update_gem(gem_to_update)
definition = Bundler::Definition.build(gemfile, gemfile_lock, nil)
dependencies = definition.dependencies

latest = Gem.latest_version_for(gem_to_update)
dependencies.each do |dep|
next if gem_to_update != dep.name # only update the gem we chose at random
# puts "Skipping #{dep.name} as it is not #{gem_to_update}"
Expand All @@ -45,9 +46,7 @@ def update_gem(gem_to_update)
puts "Gem Version: #{gem_version}"
puts "Gem Requirments: #{gem_requirements}"
puts "Gem Platforms: #{gem_platforms}"

latest = Gem.latest_version_for(gem_name)


if gem_requirements.satisfied_by?(latest)
puts "The latest (#{latest}) of #{gem_name} is satisfied by #{gem_requirements}"
bundler_args = ['lock', '--update', gem_name]
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-gemfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
with:
commit_message: Update gemfiles/*
branch: update-latest-version

0 comments on commit b03da14

Please sign in to comment.