Skip to content

Commit f22f516

Browse files
sfeiferrichm
authored andcommitted
Do not try to merge the PR in sync ansible-pcp subtree workflow
1 parent 28a9b73 commit f22f516

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/subtree.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ jobs:
4141
4242
PR_URL=$(gh pr create \
4343
--title "Sync ansible-pcp git subtree" \
44-
--body "Automated sync of ansible-pcp git subtree from upstream repository. This PR contains the latest changes from https://github.com/performancecopilot/ansible-pcp.git" \
44+
--body "Automated sync of ansible-pcp git subtree from upstream repository. This PR contains the latest changes from https://github.com/performancecopilot/ansible-pcp.git
45+
46+
You may see a conflict when trying to merge. This is expected as the PR contains a squash commit containing all the changes from the other commits.
47+
48+
To successfully merge this PR, it should be merged via the squash and merge option. Click the dropdown next to the merge button to find the merge options. " \
4549
--base main \
4650
--head "$BRANCH_NAME")
4751
4852
echo "Created PR: $PR_URL"
49-
50-
# Wait for PR to be fully created
51-
sleep 10
52-
53-
gh pr merge "$PR_URL" --squash --delete-branch --admin
54-
echo "PR merged with admin override and branch deleted"

0 commit comments

Comments
 (0)