set git user configs explicitly using the env vars w/ burnettk

This commit is contained in:
jasquat 2023-02-22 15:34:47 -05:00
parent 9b14510cd1
commit a3126da7ef
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ function run() {
return
fi
# FIXME: the environment variables may not be working with the root user which we are using in the docker container.
# we see some evidence with this issue https://stackoverflow.com/questions/68975943/git-config-environment-variables
# and it didn't seem to work for us either so set them like this for now.
# One day we should probably not use the root user in the docker container.
git config --local user.email "$GIT_COMMITTER_EMAIL"
git config --local user.name "$GIT_COMMITTER_NAME"
git commit -m "${git_commit_message}"
git push --set-upstream origin "${git_branch}"
}