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