-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.05 KB
/
dependabot-rbi-updater.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: Dependabot RBI Updater
on:
pull_request:
paths:
- 'Gemfile.lock'
- 'Gemfile'
permissions:
contents: write
pull-requests: write
jobs:
update-rbis:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
# persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
token: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
-
name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
-
name: Update RBIs
run: bin/toys rbi all_types
-
name: Commit RBIs
env:
GITHUB_TOKEN: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
run: |
git checkout ${{ github.head_ref }}
git config --local user.name "Dependabot RBI Updater"
git config --local user.email [email protected]
git commit -a -m "[dependabot skip] Update RBIs" --author="Dependabot RBI Updater <[email protected]>"
git push