Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Update auto-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell authored May 31, 2023
1 parent ea1f5ec commit c2af19f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ name: "Automerge Dependabot PRs"

on: pull_request

permissions:
pull-requests: write
contents: write
permissions: write-all

jobs:
auto-merge:
Expand All @@ -21,12 +19,12 @@ jobs:
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.PAT }}
GH_TOKEN: ${{ github.token }}

# Don't auto-merge major version updates
- name: "Enable auto-merge for Dependabot PRs"
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.PAT }}
GH_TOKEN: ${{ github.token }}

0 comments on commit c2af19f

Please sign in to comment.