Skip to content

Commit ab0fd6f

Browse files
ci: Remove cache_key calculation (#2299)
Refactor action.yml to remove RUBY_INPUT Removed RUBY_INPUT from environment variables and simplified cache version handling.
1 parent 0cc6b91 commit ab0fd6f

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/actions/test_gem/action.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ runs:
3838
shell: bash
3939
env:
4040
GEM_INPUT: ${{ inputs.gem }}
41-
RUBY_INPUT: ${{ inputs.ruby }}
4241
LATEST_INPUT: ${{ inputs.latest }}
4342
run: |
4443
# 🛠️ Setup 🛠️
@@ -51,13 +50,6 @@ runs:
5150
# of the benefits of bundler caching.
5251
rm -f "${dir}/Gemfile.lock"
5352
54-
echo "cache_key=mri" >> $GITHUB_OUTPUT
55-
if [[ "$RUBY_INPUT" == "jruby" ]]; then
56-
echo "cache_key=jruby" >> $GITHUB_OUTPUT
57-
elif [[ "$RUBY_INPUT" == "truffleruby" ]]; then
58-
echo "cache_key=truffleruby" >> $GITHUB_OUTPUT
59-
fi
60-
6153
echo "appraisals=false" >> $GITHUB_OUTPUT
6254
6355
if [[ "$LATEST_INPUT" != "true" ]]; then
@@ -93,7 +85,7 @@ runs:
9385
ruby-version: "${{ inputs.ruby }}"
9486
working-directory: "${{ steps.setup.outputs.gem_dir }}"
9587
bundler-cache: true
96-
cache-version: "${{ inputs.ruby }}-${{ steps.setup.outputs.cache_key }}"
88+
cache-version: "${{ inputs.ruby }}"
9789

9890
# If we're using appraisals, do it all manually.
9991
- name: Install Ruby ${{ inputs.ruby }} without dependencies

0 commit comments

Comments
 (0)