Skip to content

Commit 789a3a5

Browse files
committed
Fix a11y workflow.
1 parent 3043713 commit 789a3a5

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/a11y.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
ref: gh-pages
26-
27-
# 2. Setup Node.js (for Axe and http-server)
26+
fetch-depth: 0
27+
28+
# 2. Fetch main branch for scripts and other files
29+
- name: Fetch main branch
30+
run: git fetch origin main:main-for-scripts
31+
32+
# 3. Setup Node.js (for Axe and http-server)
2833
- name: Set up Node.js
2934
uses: actions/setup-node@v4
3035
with:
@@ -92,6 +97,10 @@ jobs:
9297
env:
9398
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9499
run: |
100+
# Copy scripts from main-for-scripts branch
101+
cp -r main-for-scripts/.github/scripts .github/
102+
chmod +x .github/scripts/push-badge.sh
103+
95104
# 1. Calculate the score and create the JSON file
96105
node .github/scripts/generate-badge.js
97106

0 commit comments

Comments
 (0)