mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
WIP
This commit is contained in:
parent
2dec151b5c
commit
88ddd5fba5
@ -50,19 +50,12 @@ _add_files() {
|
|||||||
|
|
||||||
_local_commit() {
|
_local_commit() {
|
||||||
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}";
|
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}";
|
||||||
|
|
||||||
git --version;
|
|
||||||
|
|
||||||
if [ -n "$INPUT_COMMIT_OPTIONS" ]
|
|
||||||
then
|
|
||||||
echo "::debug::Apply commit options ${INPUT_COMMIT_OPTIONS}";
|
echo "::debug::Apply commit options ${INPUT_COMMIT_OPTIONS}";
|
||||||
|
|
||||||
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "Message" "${INPUT_COMMIT_OPTIONS}";
|
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" \
|
||||||
|
commit -m "$INPUT_COMMIT_MESSAGE" \
|
||||||
# git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR" "${INPUT_COMMIT_OPTIONS}";
|
--author="$INPUT_COMMIT_AUTHOR" \
|
||||||
else
|
${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"};
|
||||||
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR";
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_tag_commit() {
|
_tag_commit() {
|
||||||
|
Loading…
Reference in New Issue
Block a user