You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Rebase in case main advanced while the release job ran.
521
521
git pull --rebase origin main
522
-
git push origin HEAD:main
522
+
if git push origin HEAD:main; then
523
+
echo "::notice::pushed packaging manifest sync directly to main"
524
+
exit 0
525
+
fi
526
+
527
+
branch="release/${GITHUB_REF_NAME}-manifests"
528
+
git push --force origin HEAD:"$branch"
529
+
existing_pr="$(gh pr list --head "$branch" --json number --jq '.[0].number // empty')"
530
+
if [ -z "$existing_pr" ]; then
531
+
gh pr create \
532
+
--base main \
533
+
--head "$branch" \
534
+
--title "chore(release): sync manifests to ${GITHUB_REF_NAME}" \
535
+
--body "Auto-generated by .github/workflows/release.yml after publishing ${GITHUB_REF_NAME}. Pulls SHA256SUMS.txt from the release and rewrites cask / scoop / winget / flatpak manifests to match."
536
+
fi
537
+
pr_number="$(gh pr list --head "$branch" --json number --jq '.[0].number')"
538
+
gh pr merge "$pr_number" --auto --squash
539
+
echo "::notice::opened packaging manifest PR #${pr_number} and enabled auto-merge"
Write-Output "::notice::OpenCoworkAI.OpenCoDesign is not in microsoft/winget-pkgs yet; skipping automated winget update until the initial manifest is accepted."
0 commit comments