-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 969 Bytes
/
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
name: RBI Updater
on:
workflow_call:
jobs:
update-rbis:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
fetch-depth: 0
-
name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
-
name: Update RBIs
run: bin/toys rbi all_types
-
name: Commit RBIs
run: |
git config --local user.name "RBI Updater"
git config --local user.email action@github.com
git add sorbet/*
git diff-index --cached --quiet HEAD || git commit -m "[dependabot skip] Update RBIs"
-
name: Push changes
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.LUNCHMONEY_PAT_TOKEN }}
branch: ${{ github.ref }}