Skip to content

Commit

Permalink
ci: fix auto merge logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Sep 8, 2023
1 parent e83a1d3 commit fdca1f2
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 fdca1f2

Please sign in to comment.