Skip to content

Commit

Permalink
Merge pull request #18 from canonical/IAM-414
Browse files Browse the repository at this point in the history
Fix auto merge logic
  • Loading branch information
nsklikas committed Sep 8, 2023
2 parents 3464338 + 7818909 commit f2c95c0
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 f2c95c0

Please sign in to comment.