chore(deps-dev): bump the dependencies group with 2 updates #12
Workflow file for this run
This file contains hidden or 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
| name: Sync Lockfile | |
| on: | |
| pull_request: | |
| paths: ['package.json'] | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| if: github.event.pull_request.user.login == 'dependabot[bot]' && github.event.pull_request.state == 'open' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - name: Commit updated lockfile | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add bun.lock | |
| if git diff --staged --quiet; then | |
| echo "No lockfile changes, skipping commit" | |
| exit 0 | |
| fi | |
| git commit -m "chore: sync bun.lock" | |
| git pull --rebase origin ${{ github.head_ref }} | |
| git push |