added $INPUT_COMMIT_DESCRIPTION to entrypoint.sh

im unfamiliar with shell so this is what i did with some research, the inline if statement is just a personal design/formatting choice.
This commit is contained in:
insyri
2021-10-22 09:03:21 -04:00
committed by GitHub
parent 6296a68dfd
commit 39357d386a

View File

@@ -109,7 +109,7 @@ if _git_changed; then
git commit --amend --no-edit
git push origin -f
else
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"} || echo "No files added to commit"
git commit -m "$INPUT_COMMIT_MESSAGE" if [ "$INPUT_COMMIT_DESCRIPTION" != "" ]; then echo '-m "$INPUT_COMMIT_DESCRIPTION"' fi --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"} || echo "No files added to commit"
git push origin ${INPUT_PUSH_OPTIONS:-}
fi
echo "Changes pushed successfully."