workflows/vendor-version: fix handling of Ruby upgrades

This commit is contained in:
Bo Anderson 2025-04-16 18:55:36 +01:00
parent e021a6b7dd
commit 75169a1782
No known key found for this signature in database

View File

@ -46,13 +46,16 @@ jobs:
- name: Compare to base ref
working-directory: ${{ steps.set-up-homebrew.outputs.gems-path }}/${{ steps.ruby-abi.outputs.version }}
env:
ABI_VERSION: ${{ steps.ruby-abi.outputs.version }}
VENDOR_VERSION: ${{ steps.gem-info.outputs.vendor-version }}
IGNORED_GEMS: ${{ steps.gem-info.outputs.ignored }}
run: |
git checkout "origin/${GITHUB_BASE_REF}"
rm .homebrew_vendor_version
brew install-bundler-gems --groups=all
if [[ "$(<.homebrew_vendor_version)" == "${VENDOR_VERSION}" ]]; then
if [[ "$(brew ruby -e "puts Gem.ruby_api_version")" == "${ABI_VERSION}" && \
"$(<.homebrew_vendor_version)" == "${VENDOR_VERSION}" ]]
then
while IFS= read -r gem; do
gem_dir="./gems/${gem}"
[[ -d "${gem_dir}" ]] || continue