Fix attempt #1

This commit is contained in:
Kieron Morris 2021-06-26 02:43:08 +01:00
parent c69ac198ed
commit aa91842747
2 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,5 @@
.after_script: .after_script:
script: ./compile_finish.sh "$CI_JOB_STATUS" script: ./compile_check.sh "$CI_JOB_STATUS"
rules:
- if: '$CI_JOB_STATUS == "failed"'
- when: never
artifacts: artifacts:
paths: paths:
- release/*.svg - release/*.svg

12
compile_check.sh Normal file
View File

@ -0,0 +1,12 @@
#/bin/sh
echo " "
echo "======================="
echo " "
if [ "$1" = "failed" ]
then
echo "Errors Occurred, please review."
wget -q https://img.shields.io/badge/build-failed-red.svg -O release/build.svg 2>/dev/null
echo " "
echo "======================="
exit 1
fi