Skip to content

Commit

Permalink
Fix auto merge logic (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas authored Sep 8, 2023
1 parent 0c5a0fd commit 8c42dc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/auto-approver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Enable automerge if required
if: startsWith(github.ref_name, 'renovate/auto-')
run: |
if [[ $(gh pr view --json body | grep "\*\*Automerge\*\*: Enabled") ]]; then
gh pr merge --auto --merge || true
fi
gh pr merge --auto --merge || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
3 changes: 2 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
],
"automergeType": "pr",
"rebaseWhen": "behind-base-branch",
"automerge": true
"automerge": true,
"additionalBranchPrefix": "auto-"
}

0 comments on commit 8c42dc0

Please sign in to comment.