Skip to content

Commit

Permalink
fix automerge
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Oct 23, 2024
1 parent e4b5a28 commit b0846c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ permissions:
pull-requests: write

jobs:
dependabot:
automerge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'sszynrae' || github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
if: ${{ github.actor == 'dependabot[bot]' }}
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Enable auto-merge for Dependency PRs
- name: Enable auto-merge for Dependency/Renovate PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
Expand Down

0 comments on commit b0846c9

Please sign in to comment.