Fix attempt #1
This commit is contained in:
parent
c69ac198ed
commit
aa91842747
@ -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
12
compile_check.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user