fix: minor documentation cleanups

This commit is contained in:
2025-05-08 10:32:44 +02:00
parent eeb940db6d
commit 9f54668ece
2 changed files with 3 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ inputs:
required: false
default: true
git_identity:
description: Which identity is used for git name/email
description: Which identity is used for git name/email when committing changes. Needs to be one of "actions" or "author".
required: false
default: "actions"

View File

@@ -20,12 +20,12 @@ EOF
# If GIT_IDENTITY="actor"
if [ "$INPUT_GIT_IDENTITY" = "author" ]; then
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@@users.noreply.github.com"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
elif [ "$INPUT_GIT_IDENTITY" = "actions" ]; then
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Action"
else
echo "GIT_IDENTITY must be either 'actor' or 'actions'";
echo "GIT_IDENTITY must be either 'author' or 'actions'";
exit 1;
fi;
}