Skip to content

Commit 657e95a

Browse files
committed
fix updater to properly trigger subsequent workflow
1 parent 61a6394 commit 657e95a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
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: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on:
55
- 'Gemfile.lock'
66
- 'Gemfile'
77

8-
permissions:
9-
contents: write
10-
pull-requests: write
11-
128
jobs:
139
update-rbis:
1410
runs-on: ubuntu-latest
@@ -20,6 +16,7 @@ jobs:
2016
uses: actions/checkout@v4
2117
with:
2218
ref: ${{ github.event.pull_request.head.sha }}
19+
token: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
2320
fetch-depth: 0
2421
-
2522
name: Setup Ruby
@@ -33,8 +30,8 @@ jobs:
3330
name: Commit RBIs
3431
run: |
3532
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"
33+
git config --local user.name "Dependabot RBI Updater"
34+
git config --local user.email action@github.com
35+
git commit -a -m "[dependabot skip] Update RBIs"
4036
git push
37+

0 commit comments

Comments
 (0)