From 823d6dadbf7dcc88337ce43694d037979051fdb3 Mon Sep 17 00:00:00 2001 From: Alvin Huang <17609145+alvin-huang@users.noreply.github.com> Date: Wed, 30 Sep 2020 11:12:36 -0400 Subject: [PATCH] add git config for static assets (#8777) * add git config for static assets * add commit sha to static-asset auto commit --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ae3e2ea78..f39d1d8d14 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -644,8 +644,12 @@ jobs: name: commit agent/bindata_assetfs.go if there are changes command: | if ! git diff --exit-code agent/bindata_assetfs.go; then + git config --local user.email "hashicorp-ci@users.noreply.github.com" + git config --local user.name "hashicorp-ci" + + short_sha=$(git rev-parse --short HEAD) git add agent/bindata_assetfs.go - git commit -m "auto-updated agent/bindata_assetfs.go" + git commit -m "auto-updated agent/bindata_assetfs.go from commit ${short_sha}" git push origin master else echo "no new static assets to publish"