Skip to content

Commit 2aa0574

Browse files
gjtorikianclaude
andcommitted
fix: update Gemfile.lock in release-please PR and bump action pins
After release-please creates a PR, run bundle install and commit the updated Gemfile.lock so CI doesn't fail due to a missing checksum. Also bumps ruby/setup-ruby v1.302.0 → v1.306.0 and action pins. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eea391c commit 2aa0574

4 files changed

Lines changed: 27 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- '4.0'
2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25-
- uses: ruby/setup-ruby@7372622e62b60b3cb750dcd2b9e32c247ffec26a # v1.302.0
25+
- uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
2626
with:
2727
ruby-version: ${{ matrix.ruby }}
2828
bundler-cache: true

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19-
- uses: ruby/setup-ruby@7372622e62b60b3cb750dcd2b9e32c247ffec26a # v1.302.0
19+
- uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
2020
with:
2121
bundler-cache: true
2222

.github/workflows/release-please.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,33 @@ jobs:
1515
steps:
1616
- name: Generate token
1717
id: generate-token
18-
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
18+
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
1919
with:
2020
app-id: ${{ vars.SDK_BOT_APP_ID }}
2121
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
2222

23-
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
23+
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
24+
id: release
2425
with:
2526
token: ${{ steps.generate-token.outputs.token }}
27+
28+
- name: Update Gemfile.lock on release PR
29+
if: steps.release.outputs.pr
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
with:
32+
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
33+
token: ${{ steps.generate-token.outputs.token }}
34+
35+
- name: Bundle install and commit
36+
if: steps.release.outputs.pr
37+
run: |
38+
bundle install
39+
if git diff --quiet Gemfile.lock; then
40+
echo "Gemfile.lock is up to date"
41+
else
42+
git config user.name "github-actions[bot]"
43+
git config user.email "github-actions[bot]@users.noreply.github.com"
44+
git add Gemfile.lock
45+
git commit -m "chore: update Gemfile.lock"
46+
git push
47+
fi

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2626

2727
- name: Setup Ruby
28-
uses: ruby/setup-ruby@7372622e62b60b3cb750dcd2b9e32c247ffec26a # v1.302.0
28+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
2929
with:
3030
bundler-cache: true
3131

0 commit comments

Comments
 (0)