Skip to content

Commit

Permalink
Fixed check passing when encountering unrecognised licenses
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Jan 23, 2024
1 parent 4d616a0 commit 1c7543f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,8 @@ jobs:
run: |
make licenses-check
- name: lint-licenses
# if restricted > 0, CI will report an error.
run: |
result=$(make lint-licenses | awk '{print $7}')
if [ $result -gt 0 ]; then
exit 1
fi
make lint-licenses
test:
name: Unit test
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 1c7543f

Please sign in to comment.