Skip to content

Commit

Permalink
Add approval and label (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
ro3t authored Oct 24, 2023
1 parent 6e7d736 commit 63bbfd8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{ ! contains(steps.metadata.outputs.dependency-names, 'bootstrap') }}
run: gh pr merge --auto --squash --delete-branch "$PR_URL"
run: |
gh pr review --approve "$PR_URL"
gh pr edit --add-label "automerge" "$PR_URL"
gh pr merge --auto --squash --delete-branch "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit 63bbfd8

Please sign in to comment.