Skip to content

Commit f2c9c05

Browse files
committed
fix: keep release green when auto PR creation is blocked
1 parent bdf3c63 commit f2c9c05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,8 +688,10 @@ jobs:
688688
git commit -m "chore: bump version to ${NEXT_VERSION}"
689689
git push origin "chore/bump-version-${NEXT_VERSION}"
690690
691-
gh pr create \
691+
if ! gh pr create \
692692
--title "chore: bump version to ${NEXT_VERSION}" \
693693
--body "Post-release version bump to ${NEXT_VERSION}." \
694694
--base main \
695-
--head "chore/bump-version-${NEXT_VERSION}"
695+
--head "chore/bump-version-${NEXT_VERSION}"; then
696+
echo "::warning::GitHub Actions could not create the post-release PR. The branch chore/bump-version-${NEXT_VERSION} was pushed successfully; open the PR manually."
697+
fi

0 commit comments

Comments
 (0)