Github Actions workflow to ensure the new gems are installed and locked in Gemfile.lock

.github/workflows/update_gemfile_lock.yml:

name: Update Gemfile.lock on: push: branches: - main workflow_dispatch: jobs: update-gemfile-lock: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: '3.3.4' - name: Disable Bundler Frozen Mode run: bundle config set frozen false - name: Install Bundler run: gem install bundler - name: Update Gemfile.lock run: | bundle update ffi bundle install git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add Gemfile.lock git commit -m 'Update Gemfile.lock' git push env: token: $