Skip to content

Commit 34f7668

Browse files
authored
Add auto-approval before merging PR for develop updates (#14)
2 parents d3fcf13 + 7ccfc5f commit 34f7668

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/develop-update.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ jobs:
183183
- name: "Auto-merge Pull Request"
184184
if: (steps.check_merge_source.outputs.latest_from_develop == 'true' || steps.check_merge_source.outputs.latest_from_develop == 'not_merge') && inputs.auto_merge != false
185185
run: |
186-
gh pr merge "${{ steps.create_pr.outputs.URL }}" -t "chore(ci): Auto update develop to match main [skip ci]" -b "This was done automatically by the CI pipeline" --merge
186+
# Approve PR
187+
gh pr review "${{ steps.create_pr.outputs.URL }}" --approve --body "Auto-approved by CI for merging develop update."
188+
189+
# Merge PR
190+
gh pr merge "${{ steps.create_pr.outputs.URL }}" -t "chore(ci): Auto update develop to match main [skip ci]" -b "This was done automatically by the CI pipeline" --merge --auto
187191
env:
188192
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)