Skip to content

Commit 0defb38

Browse files
committed
fix updater to properly trigger subsequent workflow
1 parent 61a6394 commit 0defb38

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: CI
22

33
on:
4-
pull_request:
5-
branches:
6-
- "*"
4+
push:
75
paths-ignore:
86
- ".github/**"
97
- ".gitignore"

.github/workflows/dependabot-rbi-updater.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919
name: Checkout
2020
uses: actions/checkout@v4
2121
with:
22+
persist-credentials: false
2223
ref: ${{ github.event.pull_request.head.sha }}
2324
fetch-depth: 0
25+
token: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
2426
-
2527
name: Setup Ruby
2628
uses: ruby/setup-ruby@v1
@@ -31,10 +33,12 @@ jobs:
3133
run: bin/toys rbi all_types
3234
-
3335
name: Commit RBIs
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
3438
run: |
3539
git checkout ${{ github.head_ref }}
36-
git config user.name "Dependabot RBI Updater"
37-
git config user.email action@github.com
38-
git add sorbet/*
39-
git diff-index --quiet HEAD || git commit -m "[dependabot skip] Update RBIs"
40+
git config --local user.name "Dependabot RBI Updater"
41+
git config --local user.email action@github.com
42+
git commit -a -m "[dependabot skip] Update RBIs" --author="Dependabot RBI Updater <action@github.com>"
4043
git push
44+

0 commit comments

Comments
 (0)