We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3043713 commit 789a3a5Copy full SHA for 789a3a5
1 file changed
.github/workflows/a11y.yml
@@ -23,8 +23,13 @@ jobs:
23
uses: actions/checkout@v4
24
with:
25
ref: gh-pages
26
-
27
- # 2. Setup Node.js (for Axe and http-server)
+ fetch-depth: 0
+
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)
33
- name: Set up Node.js
34
uses: actions/setup-node@v4
35
@@ -92,6 +97,10 @@ jobs:
92
97
env:
93
98
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94
99
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
95
104
# 1. Calculate the score and create the JSON file
96
105
node .github/scripts/generate-badge.js
106
0 commit comments