Skip to content

Commit

Permalink
complex
Browse files Browse the repository at this point in the history
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Dec 13, 2024
1 parent 1f4f6e6 commit ecaefb2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
path: compliance.xml

- name: check-warns
continue-on-error: contains(github.event.pull_request.labels.*.name, 'Compliance: False Positive')
id: check-warns
continue-on-error: true
run: |
if [[ ! -s "compliance.xml" ]]; then
exit 1;
Expand Down Expand Up @@ -119,5 +120,10 @@ jobs:
if [ "${exit}" == "1" ]; then
echo "Compliance error, check for error messages in the \"Run Compliance Tests\" step"
echo "You can run this step locally with the ./scripts/ci/check_compliance.py script."
echo ::set-output name=exit_code::$exit
exit 1;
fi
- name: resolve
if: failure() && steps.check-warns.outputs.exit_code != 0 # && contains(github.event.pull_request.labels.*.name, 'Compliance: False Positive')
run: |
exit ${{ steps.check-warns.outputs.exit_code }}

0 comments on commit ecaefb2

Please sign in to comment.