Making variable INPUT_PUSH_OPTIONS not required

This commit is contained in:
Pedro Rodrigues
2021-06-21 23:04:49 -03:00
parent c97500dd80
commit 8002e3525b

View File

@@ -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