mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-07-21 15:46:08 +08:00
Inline user config with tag command
This commit is contained in:
@@ -66,7 +66,7 @@ _tag_commit() {
|
|||||||
if [ -n "$INPUT_TAGGING_MESSAGE" ]
|
if [ -n "$INPUT_TAGGING_MESSAGE" ]
|
||||||
then
|
then
|
||||||
echo "::debug::Create tag $INPUT_TAGGING_MESSAGE";
|
echo "::debug::Create tag $INPUT_TAGGING_MESSAGE";
|
||||||
git tag -a "$INPUT_TAGGING_MESSAGE" -m "$INPUT_TAGGING_MESSAGE";
|
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" tag -a "$INPUT_TAGGING_MESSAGE" -m "$INPUT_TAGGING_MESSAGE";
|
||||||
else
|
else
|
||||||
echo " No tagging message supplied. No tag will be added.";
|
echo " No tagging message supplied. No tag will be added.";
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user