build(deps-dev): bump the frontend-dependencies group across 1 directory with 4 updates #29
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: Fix Dependabot Lockfile | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "frontend/package.json" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| fix-lockfile: | |
| if: github.actor == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: latest | |
| - name: Regenerate bun.lock | |
| run: cd frontend && bun install --no-frozen-lockfile | |
| - name: Commit and push if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add frontend/bun.lock | |
| if git diff --staged --quiet; then | |
| echo "No lockfile changes" | |
| else | |
| git commit -m "chore: regenerate bun.lock" | |
| git push | |
| fi |