Skip to content

Commit

Permalink
Create dependabot-bun.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Sep 14, 2024
1 parent 6d9c34a commit 4f85111
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dependabot-bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- run: |
bun install
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 4f85111

Please sign in to comment.