mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
fix: minor documentation cleanups
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user