Repository navigation
Select the release Gemfile - #89
Merged
Merged
Conversation
Projects that keep `ruby-gem-release` and Commonmarker out of their main bundle could not use the reusable workflow: overriding the commands was not enough, because capture, resolution, checkpoint, preflight, and failure-phase steps run `bundle exec rake release:workflow:*` in the default bundle that `ruby/setup-ruby` installs. Add a `gemfile` input that sets `BUNDLE_GEMFILE` for both jobs before Ruby setup, and an equivalent composite-action input exported before setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
From the review of ruby-grape/grape#3078: Grape wants
ruby-gem-releaseandcommonmarker(a native Rust extension) in a release-only Gemfile, as its Danger and Duel workflows do, instead of in every contributor's and CI variant's bundle. Overriding the command inputs isn't enough, because the capture, resolve, checkpoint, preflight and failure-phase steps runbundle exec rake release:workflow:*in the default bundle thatruby/setup-rubyinstalls.gemfileinput (defaultGemfile) setsBUNDLE_GEMFILEin thepreflightandreleasejob environments, soruby/setup-rubyinstalls that bundle and every step, including the defaulttestcommand, runs in it. This matches thegemfileinput of Danger's reusable workflow.gemfileinput (default empty) is exported toGITHUB_ENVbefore Ruby setup. Empty keeps aBUNDLE_GEMFILEthe calling job already sets, and multi-line values are rejected so they can't inject other variables.eval_gemfileexample. It notes that the selected Gemfile's lockfile must be committed or ignored (capture rejects an untracked lockfile), and that the Rakefile should rescueLoadErroraround the release task setup.Validation
bundle exec rake: RuboCop (including Markdown and spellcheck) and all unit and integration specs pass.bundle exec rake buildandactionlintpass.BUNDLE_GEMFILE, and the composite step's position before Ruby setup and its condition. They run the step's script to check what it exports and that it rejects a value with a line break.This PR was written by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr