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
48 changes: 48 additions & 0 deletions .github/workflows/dependabot-tapioca.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ GEM
connection_pool (2.4.1)
curb (1.0.5)
diff-lcs (1.5.1)
dotenv (3.1.0)
dotenv (3.1.2)
drb (2.2.1)
dropbox_api (0.1.21)
faraday (< 3.0)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.