Skip to content

Commit

Permalink
chore(action): add back action results (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Sep 28, 2023
1 parent accda93 commit bcc09a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: A11yWatch website scan
id: a11ywatch-results-generator
uses: ./
with:
WEBSITE_URL: https://jeffmendez.com
Expand All @@ -17,4 +18,8 @@ jobs:
UPLOAD: true
env:
DEFAULT_RUNNERS: htmlcs
PAGEMIND_IGNORE_WARNINGS: true
PAGEMIND_IGNORE_WARNINGS: true
- name: Get Results
run: |
echo "website accessibility score ${{ fromJson(steps['a11ywatch-results-generator'].outputs.results).data[0].issuesInfo.accessScore }}"
echo ${{ toJSON(steps['a11ywatch-results-generator'].outputs.results) }} | jq ". | tojson"
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ inputs:
required: false
default: false
outputs:
results:
description: "Website Results"
value: ${{ steps.a11ywatch-results-generator.outputs.results }}
issues:
description: "The amount of issues found on the page"
value: ${{ steps.a11ywatch-results-generator.outputs.issues }}
Expand Down Expand Up @@ -285,6 +288,8 @@ runs:
fi
fi
results_json="$(a11ywatch --results-parsed)"
echo "results=$(echo ${results_json})" >> $GITHUB_OUTPUT
echo "issues=$(echo ${website_issues_total})" >> $GITHUB_OUTPUT
- name: Post Stats to GitHub PR
Expand Down

0 comments on commit bcc09a7

Please sign in to comment.