-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 992 Bytes
/
generate-lockfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Generate Gemfile.lock
on:
push:
paths:
- Gemfile
jobs:
generate-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Debug bundler environment
run: |
ruby -v
bundler -v
gem env
gem list
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
env:
BUNDLE_PATH: vendor/bundle
- name: Commit and push Gemfile.lock
run: |
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 "Add Gemfile.lock (generated by GitHub Actions)"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}