Skip to content

Commit e787367

Browse files
committed
Remove consumer Ruby setup
1 parent 2e02100 commit e787367

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

action.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,7 @@ inputs:
4040
runs:
4141
using: "composite"
4242
steps:
43-
- name: Set up Ruby (consumer)
44-
uses: ruby/setup-ruby@v1
45-
with:
46-
bundler-cache: true
47-
ruby-version: ${{ inputs.ruby-version }}
48-
49-
- name: Set up Ruby (action)
43+
- name: Set up Ruby
5044
uses: ruby/setup-ruby@v1
5145
with:
5246
bundler-cache: true
@@ -56,7 +50,6 @@ runs:
5650
shell: bash
5751
working-directory: ${{ inputs.working-directory }}
5852
env:
59-
BUNDLE_GEMFILE: ${{ github.action_path }}/Gemfile
6053
GITHUB_TOKEN: ${{ inputs.github-token }}
6154
GITHUB_REPOSITORY: ${{ github.repository }}
6255
INPUT_CONFIG_FILE: ${{ inputs.config-file }}

exe/importmap-update

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,6 @@ when :run
162162
exit 2
163163
end
164164

165-
# Unset BUNDLE_GEMFILE for all child processes (bin/importmap, git, …).
166-
# The action is invoked with BUNDLE_GEMFILE pointing at its own Gemfile so
167-
# that `bundle exec` loads octokit; if that leaks into bin/importmap the
168-
# Rails app's boot.rb will try to use the action's Gemfile instead of its
169-
# own, which doesn't have Rails.
170165
runner = Importmap::Update::Commands::ShellRunner.new
171166
gh = Importmap::Update::GitHubClient.new(repo: repo, token: token)
172167
git = Importmap::Update::GitClient.new(

0 commit comments

Comments
 (0)