mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-02-06 02:54:32 +08:00
CI: compliance: fail on errors
Fail workflow in case of script crashes. This patch is a cherry-pick of a zephyr patch implemented by Anas Nashif: https://github.com/zephyrproject-rtos/zephyr/pull/31452 Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
This commit is contained in:
5
.github/workflows/compliance.yml
vendored
5
.github/workflows/compliance.yml
vendored
@@ -32,7 +32,7 @@ jobs:
|
||||
git config --global user.name "Your Name"
|
||||
git rebase origin/${BASE_REF}
|
||||
export
|
||||
./scripts/ci/check_compliance.py -m checkpatch -m Gitlint -m Identity -c origin/${BASE_REF}.. || true
|
||||
./scripts/ci/check_compliance.py -m checkpatch -m Gitlint -m Identity -c origin/${BASE_REF}..
|
||||
|
||||
- name: upload-results
|
||||
uses: actions/upload-artifact@master
|
||||
@@ -43,6 +43,9 @@ jobs:
|
||||
|
||||
- name: check-warns
|
||||
run: |
|
||||
if [[ ! -s "compliance.xml" ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
if [ -s checkpatch.txt ]; then
|
||||
errors=$(cat checkpatch.txt)
|
||||
errors="${errors//'%'/'%25'}"
|
||||
|
||||
Reference in New Issue
Block a user