Skip to content

Instantly share code, notes, and snippets.

@ghoullier
Last active May 30, 2023 20:59
Show Gist options
  • Save ghoullier/1788fb6b3cfc2759c51ad28be00c8694 to your computer and use it in GitHub Desktop.
Save ghoullier/1788fb6b3cfc2759c51ad28be00c8694 to your computer and use it in GitHub Desktop.
Add lockfile maintenance to dependabot pull request.
on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize ]
name: Dependabot Bun Support
permissions:
contents: write # to commit code (actions/checkout)
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- name: Set @github-actions[bot] as committer
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- run: git status
- run: git add -A
- run: |
git commit -m "chore(deps-dev): bump bun lockfile"
- run: git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment