Skip to content

update gemfile.lock #122

update gemfile.lock

update gemfile.lock #122

name: update gemfile.lock
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
paths:
- 'src/**'
- '!**.md'
- '.github/workflows/update-gemfilelock.yml'
schedule:
- cron: '3 7 */13 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: 2
- name: Set up Ruby
uses: ruby/setup-ruby@master
with:
ruby-version: '3.4'
- name: Build new gemfile lock with Rake
run: |
cd src
rm --force Gemfile.lock
gem install bundler
bundle install --jobs 9 --retry 3
- uses: peter-evans/create-pull-request@v8.1.0
id: pr
with:
author: aatfbot <aatfbot@aatf.us>
committer: aatfbot <aatfbot@aatf.us>
commit-message: "[ci] update gemfile.lock"
title: "[ci] update gemfile.lock"
delete-branch: true
- name: enable auto merge
if: steps.pr.outputs.pull-request-number
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr merge ${{ steps.pr.outputs.pull-request-number }} --auto --squash