Skip to content

Commit e408656

Browse files
Update accessibiliy comment github action to take into account all commits
1 parent 90b6b63 commit e408656

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/accessibility.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
echo "[" > pa11y_targets.json
6262
first=true
6363
64-
git fetch origin ${{ github.base_ref }} --depth=1
65-
git diff --name-only FETCH_HEAD HEAD | grep -E "\.md$|\.ipynb$" > changed_files.txt || true
64+
git fetch origin ${{ github.base_ref }}
65+
git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E "\.md$|\.ipynb$" > changed_files.txt || true
6666
echo "Changed source files:"
6767
cat changed_files.txt || echo "None"
6868
@@ -88,6 +88,7 @@ jobs:
8888
echo "Generated pa11y_targets.json:"
8989
cat pa11y_targets.json
9090
91+
9192
- name: Run Pa11y CI once on identified pages and save output
9293
id: run_pa11y
9394
shell: bash

0 commit comments

Comments
 (0)