-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.3 KB
/
dependabot-tapioca.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 Tapioca updates
on:
pull_request_target:
types: [opened, synchronize]
jobs:
build:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'needs-gem-rbi') }}'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_USER_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: git info
run: git log --oneline | head -n10
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Dump GitHub PR context
env:
GITHUB_CONTEXT: ${{ toJson(github.event.pull_request) }}
run: echo "$GITHUB_CONTEXT"
- name: Setup AutoHCK
uses: ./.github/actions/setup-autohck
- name: Tapioca update
run: bundle exec tapioca gem
- name: add label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: needs-gem-rbi
- name: git update
run: |
git config --global user.name 'Daynix GitHub Actions'
git config --global user.email '[email protected]'
git add sorbet/rbi/gems
git commit --amend -m 'Update tapioca RBIs' sorbet/rbi/gems
git push --force