Ver Fonte

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 há 5 meses atrás
pai
commit
001b6a256c
1 ficheiros alterados com 5 adições e 0 exclusões
  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 }}