Display error info

This commit is contained in:
Tusooa Zhu 2022-08-28 10:24:01 -04:00
parent d3871fa360
commit a26fb6ab48
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ check-changelog:
rules: rules:
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop"
script: script:
- count=0; for i in changelog.d/"$CI_MERGE_REQUEST_IID".{add,remove,fix,security,skip}; do [ -f "$i" ]; count=$(( $count + 1 - $? )); done; [ $count -eq 1 ] - echo $CI_MERGE_REQUEST_IID
- count=0; for i in changelog.d/"$CI_MERGE_REQUEST_IID".{add,remove,fix,security,skip}; do [ -f "$i" ]; count=$(( $count + 1 - $? )); done; if [ $count -eq 1 ]; then echo "ok"; else echo "must have a changelog entry or explicitly skip it"; exit 1; fi
build: build:
stage: build stage: build