From 8002e3525bd1c3623b481f162a79c54701b46c42 Mon Sep 17 00:00:00 2001 From: Pedro Rodrigues Date: Mon, 21 Jun 2021 23:04:49 -0300 Subject: [PATCH] Making variable INPUT_PUSH_OPTIONS not required --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6c3f433..95de31b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -109,7 +109,7 @@ if _git_changed; then 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 push origin $INPUT_PUSH_OPTIONS + git push origin ${INPUT_PUSH_OPTIONS:-} fi echo "Changes pushed successfully." fi