fix(cd): split --enable-auto-merge into separate merge command
CTO review fix: gh pr create does not support --enable-auto-merge flag. Split into two commands: create PR, then gh pr merge with --auto --merge. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -339,10 +339,10 @@ jobs:
|
|||||||
git push -u origin "chore/update-image-tags-${TAG}"
|
git push -u origin "chore/update-image-tags-${TAG}"
|
||||||
|
|
||||||
# Create PR with auto-merge
|
# Create PR with auto-merge
|
||||||
gh pr create \
|
PR_URL=$(gh pr create \
|
||||||
--repo groombook/infra \
|
--repo groombook/infra \
|
||||||
--base main \
|
--base main \
|
||||||
--head "chore/update-image-tags-${TAG}" \
|
--head "chore/update-image-tags-${TAG}" \
|
||||||
--title "chore: update image tags to ${TAG}" \
|
--title "chore: update image tags to ${TAG}" \
|
||||||
--body "[GRO-178](/GRO/issues/GRO-178) — automated image tag update from main merge" \
|
--body "[GRO-178](/GRO/issues/GRO-178) — automated image tag update from main merge")
|
||||||
--enable-auto-merge
|
gh pr merge "$PR_URL" --auto --merge
|
||||||
|
|||||||
Reference in New Issue
Block a user