mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Use one-line if statement
This commit is contained in:
parent
bdc88aff2c
commit
2d23a29775
@ -45,7 +45,7 @@ then
|
||||
|
||||
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}"
|
||||
|
||||
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" is_defined "${INPUT_COMMIT_OPTIONS}" && "${INPUT_COMMIT_OPTIONS}"
|
||||
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" if is_defined "${INPUT_COMMIT_OPTIONS}"; then "${INPUT_COMMIT_OPTIONS}"; fi
|
||||
|
||||
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user