Skip to content

Commit 1d84bad

Browse files
committed
chore(ci): fail create-pr when branch cannot be created or behind tip
1 parent 5b14452 commit 1d84bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/create-pr/create_pr_for_staged_changes.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function create_temporary_branch_with_changes() {
8282
echo "$@" | xargs -n1 git add || error "Failed to add staged changes: "$@""
8383
git commit -m "${PR_TITLE}"
8484

85-
git push origin "${TEMP_BRANCH}"
85+
git push origin "${TEMP_BRANCH}" || error "Failed to create new temporary branch"
8686
end_span
8787
}
8888

0 commit comments

Comments
 (0)