Skip to content

Commit bcc09a7

Browse files
authored
chore(action): add back action results (#53)
1 parent accda93 commit bcc09a7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/action.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
steps:
88
- uses: actions/checkout@v4
99
- name: A11yWatch website scan
10+
id: a11ywatch-results-generator
1011
uses: ./
1112
with:
1213
WEBSITE_URL: https://jeffmendez.com
@@ -17,4 +18,8 @@ jobs:
1718
UPLOAD: true
1819
env:
1920
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"

action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ inputs:
9090
required: false
9191
default: false
9292
outputs:
93+
results:
94+
description: "Website Results"
95+
value: ${{ steps.a11ywatch-results-generator.outputs.results }}
9396
issues:
9497
description: "The amount of issues found on the page"
9598
value: ${{ steps.a11ywatch-results-generator.outputs.issues }}
@@ -285,6 +288,8 @@ runs:
285288
fi
286289
fi
287290
291+
results_json="$(a11ywatch --results-parsed)"
292+
echo "results=$(echo ${results_json})" >> $GITHUB_OUTPUT
288293
echo "issues=$(echo ${website_issues_total})" >> $GITHUB_OUTPUT
289294
290295
- name: Post Stats to GitHub PR

0 commit comments

Comments
 (0)