Skip to content

Commit a899cb5

Browse files
committed
fix: Force push when forceOrphan is true
1 parent f83fbff commit a899cb5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,10 @@ else
116116
git commit --allow-empty -m "${COMMIT_MESSAGE}"
117117
fi
118118

119-
git push origin "${remote_branch}"
119+
if [[ ${INPUT_FORCEORPHAN} == "false" ]]; then
120+
git push origin "${remote_branch}"
121+
else
122+
git push origin --force "${remote_branch}"
123+
fi
124+
120125
print_info "${GITHUB_SHA} was successfully deployed"

0 commit comments

Comments
 (0)