-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add bun support for dependabot as per dependabot/dependabot-co…
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |