Skip to content

Commit 3cef6ba

Browse files
committed
Alternative fix with a better understanding of whats going on...
1 parent a637ac7 commit 3cef6ba

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

entrypoint.sh

+2-10
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,8 @@ fi
4444

4545
# create the commit
4646
git add .
47-
git commit -m "${INPUT_COMMIT_MESSAGE}"
48-
49-
# if there is a new commit - push it to the destination
50-
if [ ! -z "$(git cherry -v)" ]; then
51-
GIT_SSH_COMMAND=$GIT_SSH git push -u origin $INPUT_DESTINATION_BRANCH
52-
53-
# otherwise, don't try to push - this causes the workflow to fail
54-
else
55-
echo "Nothing waiting to be pushed"
56-
fi
47+
git commit -m "${INPUT_COMMIT_MESSAGE}" || echo
48+
GIT_SSH_COMMAND=$GIT_SSH git push -u origin $INPUT_DESTINATION_BRANCH
5749

5850
# output the commit hash
5951
echo "::set-output name=commit_hash::$(git rev-parse HEAD)"

0 commit comments

Comments
 (0)