From 53e824abf33f705a17673b37268bcb8c524d0f9f Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 22 Feb 2023 15:34:47 -0500 Subject: [PATCH] set git user configs explicitly using the env vars w/ burnettk --- bin/git_commit_bpmn_models_repo | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/git_commit_bpmn_models_repo b/bin/git_commit_bpmn_models_repo index 215e0ac9..f34400ec 100755 --- a/bin/git_commit_bpmn_models_repo +++ b/bin/git_commit_bpmn_models_repo @@ -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}" }