mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #19782 from Homebrew/vendor-version-fix
workflows/vendor-version: fix handling of Ruby upgrades
This commit is contained in:
commit
55a9759bed
5
.github/workflows/vendor-version.yml
vendored
5
.github/workflows/vendor-version.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user