fix(status-badge): set git identity
This commit is contained in:
parent
f67490efbf
commit
a7f38938ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue