A platform for community discussion. Free, open, simple.
DEV: Update actions cache keys for bundler cache take 2 (#26411)
Alan Guo Xiang Tan337edc2f21a3
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 182796b7dce..7fb48f2b269 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -84,11 +84,18 @@ jobs:sudo -E -u postgres script/start_test_db.rbsudo -u postgres psql -c "CREATE ROLE $PGUSER LOGIN SUPERUSER PASSWORD '$PGPASSWORD';"+ - name: Container envs+ id: container-envs+ run: |+ echo "ruby_version=$RUBY_VERSION" >> $GITHUB_OUTPUT+ echo "debian_release=$DEBIAN_RELEASE" >> $GITHUB_OUTPUT+ shell: bash+- name: Bundler cacheuses: actions/cache@v4with:path: vendor/bundle- key: ${{ runner.os }}-${{ env.RUBY_VERSION }}-${{ env.DEBIAN_RELEASE }}-gem-${{ hashFiles('**/Gemfile.lock') }}-cachev2+ key: ${{ runner.os }}-${{ steps.container-envs.outputs.ruby_version }}-${{ steps.container-envs.outputs.debian_release }}-gem-${{ hashFiles('**/Gemfile.lock') }}-cachev2- name: Setup gemsrun: |@@ -125,7 +132,7 @@ jobs:uses: actions/cache@v4with:path: plugins/*/gems- key: ${{ runner.os }}-plugin-gems-${{matrix.ruby}}-${{ hashFiles('plugins/*/plugin.rb') }}+ key: ${{ runner.os }}-plugin-gems-${{ steps.container-envs.outputs.ruby_version }}-${{ steps.container-envs.outputs.debian_release }}-${{ hashFiles('plugins/*/plugin.rb') }}- name: Checkout official themesif: matrix.target == 'themes' && matrix.build_type == 'system'