Skip to content

Commit 9a0cf5d

Browse files
author
Tom Pearson
authored
Update pa11y.yml
1 parent d3657db commit 9a0cf5d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/pa11y.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,19 @@ jobs:
1313
uses: actions/setup-node@v1
1414
with:
1515
node-version: 14
16+
- name: Checkout PR branch
17+
uses: actions/checkout@v2
18+
with:
19+
ref: ${{ github.head_ref }}
1620
- name: Run pa11y
1721
run: |
1822
npm i
19-
npm test
23+
npm test
24+
- name: Commit report
25+
run: |
26+
git config user.name "Automated"
27+
git config user.email "[email protected]"
28+
git add .
29+
timestamp=$(date -u)
30+
git commit -m "Accessibility report: ${timestamp}" || exit 0
31+
git push

0 commit comments

Comments
 (0)