Skip to content

Commit fcde457

Browse files
committed
always run report
1 parent 444db54 commit fcde457

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,15 @@ jobs:
916916
vulnerability-check: false
917917
- name: "Report"
918918
# make sure this step runs even if the previous failed
919-
if: ${{ failure() && steps.review.conclusion == 'failure' }}
919+
if: always()
920920
shell: bash
921-
env: # store comment HTML data in an environment variable
921+
env:
922922
VULNERABLE_CHANGES: ${{ steps.review.outputs.invalid-license-changes }}
923923
run: |
924-
echo "$VULNERABLE_CHANGES" | jq
924+
if [ -n "$VULNERABLE_CHANGES ]; then
925+
echo "Invalid or unknown licenses detected, contact sreya to ensure your added dependency falls under one of our allowed licenses."
926+
echo "$VULNERABLE_CHANGES" | jq
927+
exit 1
928+
else
929+
echo "No incompatible licenses detected"
930+
fi

0 commit comments

Comments
 (0)