Browse Source

dependabot: Auto-approve PRs (#54)

#### Problem

Now that PRs require approval, dependabot PRs don't automatically merge.

#### Summary of changes

Add a step to approve the PR.
Jon C 5 tháng trước cách đây
mục cha
commit
001b6a256c
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      .github/workflows/dependabot-auto-merge.yml

+ 5 - 0
.github/workflows/dependabot-auto-merge.yml

@@ -15,3 +15,8 @@ jobs:
         env:
           PR_URL: ${{ github.event.pull_request.html_url }}
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      - name: Approve
+        run: gh pr review --approve "$PR_URL"
+        env:
+          PR_URL: ${{ github.event.pull_request.html_url }}
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}