Skip to content

Commit a0131c3

Browse files
committed
enhance: forceOrphan condition check
1 parent a899cb5 commit a0131c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

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

119-
if [[ ${INPUT_FORCEORPHAN} == "false" ]]; then
120-
git push origin "${remote_branch}"
121-
else
119+
if [[ ${INPUT_FORCEORPHAN} == "true" ]]; then
122120
git push origin --force "${remote_branch}"
121+
else
122+
git push origin "${remote_branch}"
123123
fi
124124

125125
print_info "${GITHUB_SHA} was successfully deployed"

0 commit comments

Comments
 (0)