Skip to content

Update update_gemfile_lock.yml #5

Update update_gemfile_lock.yml

Update update_gemfile_lock.yml #5

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.0.0'
- name: Install Bundler
run: gem install bundler
- name: Update Gemfile.lock
run: |
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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}