Skip to content

Commit

Permalink
Auto-approve only
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Apr 18, 2024
1 parent 3367b2d commit a8ff5dc
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/auto-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# limitations under the License.
#

name: Dependabot auto-merge
on: pull_request
name: Dependabot Auto-approve
on: pull_request_target

permissions:
contents: write
Expand All @@ -38,13 +38,5 @@ jobs:
- name: Approve PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

# comment '@dependabot merge' to merge the PR
- name: Comment and Merge PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
run: gh pr comment $PR_URL -b "@dependabot merge"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a8ff5dc

Please sign in to comment.