mirror of
https://github.com/varunsridharan/actions-toolkit.git
synced 2025-02-23 15:13:10 +08:00
26 lines
No EOL
403 B
Bash
26 lines
No EOL
403 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
GIT_EMAIL=""
|
|
GIT_USERNAME=""
|
|
|
|
if [ -z "$1" ]; then
|
|
GIT_USERNAME="Github Actions Bot"
|
|
else
|
|
GIT_USERNAME="$1"
|
|
fi
|
|
|
|
if [ -z "$2" ]; then
|
|
GIT_USERNAME="githubactionbot@gmail"
|
|
else
|
|
GIT_USERNAME="$2"
|
|
fi
|
|
|
|
git config --global user.email "$1"
|
|
git config --global user.name "$2"
|
|
|
|
echo "###[group] Git Config"
|
|
echo "Username : $GIT_USERNAME"
|
|
echo "EMail : $GIT_EMAIL"
|
|
echo "###[endgroup]" |