-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.92 KB
/
Copy pathdependabot-tapioca.yml
File metadata and controls
48 lines (45 loc) · 1.92 KB
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
43
44
45
46
47
48
name: Dependabot Tapioca updates
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: write
pull-requests: read
jobs:
build:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Fetch Dependabot metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
- uses: actions/checkout@v4
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Update Ubuntu package repository
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
run: sudo apt-get update
- name: Setup sqlite-devel
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
run: sudo apt-get -y install libsqlite3-dev
- name: Setup libcurl-devel
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
run: sudo apt-get -y install libcurl4 libcurl3-gnutls libcurl4-openssl-dev
- uses: ruby/setup-ruby@v1
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
with:
ruby-version: '3.1.2'
bundler-cache: true
- name: Tapioca update
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
run: bundle exec tapioca gem
- name: git update
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
run: |
git config --global user.name 'Daynix GitHub Actions'
git config --global user.email 'gha@daynix.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git add sorbet/rbi/gems
git commit -m "updated tapioca definitions" sorbet/rbi/gems
git push -u origin HEAD:${{ github.event.pull_request.head.ref }}