From a7f38938ff87dc33558327a76a0b34c66d86ab3f Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Wed, 1 Apr 2020 10:06:23 +0100 Subject: [PATCH] fix(status-badge): set git identity --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dee5eafd..94752050 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,6 +32,8 @@ deploy_job: # Generate successful status badge - mkdir -p .gitlab/ - wget https://img.shields.io/badge/pipeline-passed-success.svg -O .gitlab/status.svg + - git config --global user.name "curben-bot" + - git config --global user.email "3048979-curben-bot@users.noreply.gitlab.com" - git add .gitlab/status.svg # Only commit when diff exists https://stackoverflow.com/a/8123841 - git diff-index --quiet HEAD || git commit -m "Success pipeline" @@ -69,6 +71,8 @@ failed_job: script: - mkdir -p .gitlab/ - wget https://img.shields.io/badge/pipeline-failed-critical.svg -O .gitlab/status.svg + - git config --global user.name "curben-bot" + - git config --global user.email "3048979-curben-bot@users.noreply.gitlab.com" - git add .gitlab/status.svg - git diff-index --quiet HEAD || git commit -m "Failed pipeline" - ssh -T git@gitlab.com