added update-lockfile.yml

This commit is contained in:
MarcUs7i 2025-07-11 02:20:43 +02:00
parent a3f542a7f8
commit 586901ebed

26
.github/workflows/update-lockfile.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Update Bun Lockfile
on:
pull_request:
paths:
- 'package.json'
jobs:
fix-lockfile:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'dependabot/')
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: oven-sh/setup-bun@v1
- name: Install and update lockfile
run: |
bun install
- name: Commit and push updated lockfile
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add bun.lock
git commit -m "chore: update lockfile (auto-fix for Dependabot PR)" || exit 0
git push