Skip to content

Commit 620778b

Browse files
authored
Update CI with "Format scores json" step (#54)
* Update CI with "Format scores json" step Useful for PR's across forks * Docs for new step * fix indentation issue
1 parent f23cfed commit 620778b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pana_analysis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ jobs:
2929
then
3030
echo Score too low!
3131
exit 1
32-
fi
32+
fi
33+
34+
# This step is useful for PR's coming from forks. It takes the raw JSON and formats a report from it.
35+
- name: Format scores json
36+
env:
37+
JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }}
38+
run: |
39+
TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT")

0 commit comments

Comments
 (0)