mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Use Array
This commit is contained in:
parent
88ddd5fba5
commit
6e0a745133
@ -52,10 +52,12 @@ _local_commit() {
|
|||||||
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}";
|
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}";
|
||||||
echo "::debug::Apply commit options ${INPUT_COMMIT_OPTIONS}";
|
echo "::debug::Apply commit options ${INPUT_COMMIT_OPTIONS}";
|
||||||
|
|
||||||
|
INPUT_COMMIT_OPTIONS_ARRAY=( $INPUT_COMMIT_OPTIONS );
|
||||||
|
|
||||||
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" \
|
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" \
|
||||||
commit -m "$INPUT_COMMIT_MESSAGE" \
|
commit -m "$INPUT_COMMIT_MESSAGE" \
|
||||||
--author="$INPUT_COMMIT_AUTHOR" \
|
--author="$INPUT_COMMIT_AUTHOR" \
|
||||||
${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"};
|
${INPUT_COMMIT_OPTIONS:+"${INPUT_COMMIT_OPTIONS_ARRAY[@]}"};
|
||||||
}
|
}
|
||||||
|
|
||||||
_tag_commit() {
|
_tag_commit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user