Skip to content

Commit

Permalink
chore: add bun support for dependabot as per dependabot/dependabot-co…
Browse files Browse the repository at this point in the history
  • Loading branch information
jake8655 committed Dec 6, 2024
1 parent 7c18ba9 commit 5ccb1a8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/dependabot-bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Dependabot: Update bun.lockb"

on:
pull_request:
paths:
- "package.json"

permissions:
contents: write

jobs:
update-bun-lockb:
name: "Update bun.lockb"
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Install dependencies
run: |
bun install
- name: Update bun.lockb
run: |
git add bun.lockb
git config --global user.name 'dependabot[bot]'
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
git commit --amend --no-edit
git push --force

0 comments on commit 5ccb1a8

Please sign in to comment.