We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a637ac7 commit 3cef6baCopy full SHA for 3cef6ba
entrypoint.sh
@@ -44,16 +44,8 @@ fi
44
45
# create the commit
46
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
+git commit -m "${INPUT_COMMIT_MESSAGE}" || echo
+GIT_SSH_COMMAND=$GIT_SSH git push -u origin $INPUT_DESTINATION_BRANCH
57
58
# output the commit hash
59
echo "::set-output name=commit_hash::$(git rev-parse HEAD)"
0 commit comments