Skip to content

Commit

Permalink
Merge pull request #20 from ubunchuu-truong-us/hotfix/dependabot-auto…
Browse files Browse the repository at this point in the history
…-merge-workflow

Hotfix/dependabot auto merge workflow
  • Loading branch information
thangbuiq authored Feb 9, 2024
2 parents 87fa8c6 + 8ac5540 commit 66ad476
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dependabot.auto.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Dependabot auto-merge
on:
pull_request:
branches:
- 'dependabot/**'
on: pull_request

permissions:
contents: write
Expand All @@ -11,12 +8,14 @@ permissions:
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
run: |
git config --global user.name "dependabot[bot]"
git config --global user.email "dependabot[bot]@users.noreply.github.com"
gh pr merge --auto --merge "$PR_URL" --base main
gh pr merge --auto --merge "$PR_URL"
gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.TOKEN_GITHUB}}

0 comments on commit 66ad476

Please sign in to comment.