mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2026-01-11 12:08:25 +00:00
Change internal variable names
This commit is contained in:
@@ -180,11 +180,11 @@ _tag_commit() {
|
|||||||
echo "INPUT_TAGGING_MESSAGE: ${INPUT_TAGGING_MESSAGE}"
|
echo "INPUT_TAGGING_MESSAGE: ${INPUT_TAGGING_MESSAGE}"
|
||||||
|
|
||||||
if [ -n "$INPUT_TAG" ] || [ -n "$INPUT_TAGGING_MESSAGE" ]; then
|
if [ -n "$INPUT_TAG" ] || [ -n "$INPUT_TAGGING_MESSAGE" ]; then
|
||||||
TAG=${INPUT_TAG:-$INPUT_TAGGING_MESSAGE}
|
INTERNAL_TAG=${INPUT_TAG:-$INPUT_TAGGING_MESSAGE}
|
||||||
MESSAGE=${INPUT_TAGGING_MESSAGE:-$INPUT_TAG}
|
INTERNAL_TAGGING_MESSAGE=${INPUT_TAGGING_MESSAGE:-$INPUT_TAG}
|
||||||
|
|
||||||
_log "debug" "Create tag $TAG: $MESSAGE"
|
_log "debug" "Create tag $INTERNAL_TAG: $INTERNAL_TAGGING_MESSAGE"
|
||||||
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" tag -a "$TAG" -m "$MESSAGE"
|
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" tag -a "$INTERNAL_TAG" -m "$INTERNAL_TAGGING_MESSAGE"
|
||||||
else
|
else
|
||||||
echo "Neither tag nor tag message is set. No tag will be added.";
|
echo "Neither tag nor tag message is set. No tag will be added.";
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user