From d296ba9abca926310a65a9886d70161e18efacd4 Mon Sep 17 00:00:00 2001 From: Reuben Turner Date: Sat, 1 May 2021 17:04:54 -0400 Subject: [PATCH 1/3] Update CI with "Format scores json" step Useful for PR's across forks --- .github/workflows/pana_analysis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pana_analysis.yml b/.github/workflows/pana_analysis.yml index 7c1c4ac1..97bc772b 100644 --- a/.github/workflows/pana_analysis.yml +++ b/.github/workflows/pana_analysis.yml @@ -29,4 +29,11 @@ jobs: then echo Score too low! exit 1 - fi \ No newline at end of file + fi + + # + - name: Format scores json + env: + JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }} + run: | + TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT") \ No newline at end of file From f88cf39b524ec16829226fc49a247928f6c9aea7 Mon Sep 17 00:00:00 2001 From: Reuben Turner Date: Sat, 1 May 2021 17:06:53 -0400 Subject: [PATCH 2/3] Docs for new step --- .github/workflows/pana_analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pana_analysis.yml b/.github/workflows/pana_analysis.yml index 97bc772b..cc77412d 100644 --- a/.github/workflows/pana_analysis.yml +++ b/.github/workflows/pana_analysis.yml @@ -31,7 +31,7 @@ jobs: exit 1 fi - # + # This step is useful for PR's coming from forks. It takes the raw JSON and formats a report from it. - name: Format scores json env: JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }} From f7af0c97c3cb42b55b6df6cf2d4d42bb1ec405dd Mon Sep 17 00:00:00 2001 From: Reuben Turner Date: Sat, 1 May 2021 17:08:22 -0400 Subject: [PATCH 3/3] fix indentation issue --- .github/workflows/pana_analysis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pana_analysis.yml b/.github/workflows/pana_analysis.yml index cc77412d..37c7603d 100644 --- a/.github/workflows/pana_analysis.yml +++ b/.github/workflows/pana_analysis.yml @@ -33,7 +33,7 @@ jobs: # This step is useful for PR's coming from forks. It takes the raw JSON and formats a report from it. - name: Format scores json - env: - JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }} - run: | - TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT") \ No newline at end of file + env: + JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }} + run: | + TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT") \ No newline at end of file