File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 7
7
steps :
8
8
- uses : actions/checkout@v4
9
9
- name : A11yWatch website scan
10
+ id : a11ywatch-results-generator
10
11
uses : ./
11
12
with :
12
13
WEBSITE_URL : https://jeffmendez.com
17
18
UPLOAD : true
18
19
env :
19
20
DEFAULT_RUNNERS : htmlcs
20
- PAGEMIND_IGNORE_WARNINGS : true
21
+ PAGEMIND_IGNORE_WARNINGS : true
22
+ - name : Get Results
23
+ run : |
24
+ echo "website accessibility score ${{ fromJson(steps['a11ywatch-results-generator'].outputs.results).data[0].issuesInfo.accessScore }}"
25
+ echo ${{ toJSON(steps['a11ywatch-results-generator'].outputs.results) }} | jq ". | tojson"
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ inputs:
90
90
required : false
91
91
default : false
92
92
outputs :
93
+ results :
94
+ description : " Website Results"
95
+ value : ${{ steps.a11ywatch-results-generator.outputs.results }}
93
96
issues :
94
97
description : " The amount of issues found on the page"
95
98
value : ${{ steps.a11ywatch-results-generator.outputs.issues }}
@@ -285,6 +288,8 @@ runs:
285
288
fi
286
289
fi
287
290
291
+ results_json="$(a11ywatch --results-parsed)"
292
+ echo "results=$(echo ${results_json})" >> $GITHUB_OUTPUT
288
293
echo "issues=$(echo ${website_issues_total})" >> $GITHUB_OUTPUT
289
294
290
295
- name : Post Stats to GitHub PR
You can’t perform that action at this time.
0 commit comments