mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-utils.git
synced 2026-04-21 23:48:06 +00:00
Fix auto-pr to not fail when branches are already in sync
This commit is contained in:
@@ -23,13 +23,18 @@ jobs:
|
|||||||
|
|
||||||
if [ -n "$EXISTING_PR" ]; then
|
if [ -n "$EXISTING_PR" ]; then
|
||||||
echo "PR #$EXISTING_PR already exists — new commits will appear automatically"
|
echo "PR #$EXISTING_PR already exists — new commits will appear automatically"
|
||||||
else
|
exit 0
|
||||||
echo "Creating new PR: master → main"
|
fi
|
||||||
gh pr create \
|
|
||||||
--base main \
|
echo "Creating new PR: master → main"
|
||||||
--head master \
|
if gh pr create \
|
||||||
--title "Sync: master → main" \
|
--base main \
|
||||||
--body "Automated PR to sync master branch changes to main.
|
--head master \
|
||||||
|
--title "Sync: master → main" \
|
||||||
This PR was created automatically and will be merged once CI checks pass."
|
--body "Automated PR to sync master branch changes to main.
|
||||||
|
|
||||||
|
This PR was created automatically and will be merged once CI checks pass."; then
|
||||||
|
echo "PR created successfully"
|
||||||
|
else
|
||||||
|
echo "PR creation skipped (branches may already be in sync)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user