Last active
May 30, 2023 20:59
-
-
Save ghoullier/1788fb6b3cfc2759c51ad28be00c8694 to your computer and use it in GitHub Desktop.
Add lockfile maintenance to dependabot pull request.
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
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