Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/dependabot-tapioca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Dependabot Tapioca updates
on:
pull_request_target:
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@v2
- name: Dump PAT_USER_TOKEN
run: echo ${{ secrets.PAT_USER_TOKEN }}
- name: Test PAT_USER_TOKEN
env:
PAT_USER_TOKEN: ${{ secrets.PAT_USER_TOKEN }}
run: |
echo ${#PAT_USER_TOKEN}
- name: Dump PAT_USER_TOKEN
env:
GITHUB_CONTEXT: ${{ secrets.PAT_USER_TOKEN }}
run: echo "$GITHUB_CONTEXT"

- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v4
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'bundler' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.PAT_USER_TOKEN }}

- 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 2'
git config --global user.email '[email protected]'
git add sorbet/rbi/gems
git commit -m "updated tapioca definitions 2" sorbet/rbi/gems
git push -u origin HEAD:${{ github.event.pull_request.head.ref }}
4 changes: 3 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ GEM
rdoc (6.6.3.1)
psych (>= 4.0.0)
regexp_parser (2.9.0)
rexml (3.2.6)
rexml (3.2.8)
strscan (>= 3.0.9)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
Expand Down Expand Up @@ -149,6 +150,7 @@ GEM
sorbet-static-and-runtime (>= 0.5.10187)
thor (>= 0.19.2)
stringio (3.1.0)
strscan (3.1.0)
tapioca (0.13.3)
bundler (>= 2.2.25)
netrc (>= 0.11.0)
Expand Down
Loading