From 27ec020f22ba3a776170793ac08a0f5961f6e1ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ch=C4=99ci=C5=84ski?= Date: Fri, 23 Feb 2024 12:54:12 +0100 Subject: [PATCH] [DEVOPS-1785] Fix publish Ruby workflow (#628) ## Type of change ``` - [x] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ``` ## Objective Fix error from ruby release pipeline: ``` Could not find gem 'rspec (~> 3.0)' in locally installed gems. ``` ## Code changes - **.github/workflows/publish-ruby.yml:** Replace `gem build` with `bundle install` ## Before you submit - Please add **unit tests** where it makes sense to do so --- .github/workflows/publish-ruby.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-ruby.yml b/.github/workflows/publish-ruby.yml index 498e62812..931981667 100644 --- a/.github/workflows/publish-ruby.yml +++ b/.github/workflows/publish-ruby.yml @@ -15,7 +15,6 @@ on: permissions: contents: read - pages: write id-token: write jobs: @@ -108,8 +107,8 @@ jobs: cp "temp/${platforms[$i]}/${files[$i]}" "languages/ruby/bitwarden_sdk_secrets/lib/${platforms[$i]}/${files[$i]}" done - - name: Build gem - run: gem build bitwarden-sdk-secrets.gemspec + - name: bundle install + run: bundle install working-directory: languages/ruby/bitwarden_sdk_secrets - name: Set remote URL