Skip to content

Commit 76727ae

Browse files
committed
Attempt to fix paths.
1 parent 9a8f501 commit 76727ae

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/a11y.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,10 @@ jobs:
2626

2727
# 2. Fetch main branch for scripts
2828
- name: Checkout main for scripts
29-
uses: actions/checkout@v4
30-
with:
31-
ref: main
32-
fetch-depth: 1
33-
path: ${{ github.workspace }}/../main-scripts
29+
run: |
30+
git clone --depth 1 --branch main \
31+
https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git \
32+
$GITHUB_WORKSPACE/../main-scripts
3433
3534
# 3. Setup Node.js (for Axe and http-server)
3635
- name: Set up Node.js
@@ -101,7 +100,7 @@ jobs:
101100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102101
run: |
103102
# 1. Calculate the score and create the JSON file
104-
node ../main-scripts/.github/scripts/generate-badge.js
103+
node $GITHUB_WORKSPACE/../main-scripts/.github/scripts/generate-badge.js
105104
106105
# 2. Push to the orphaned 'badges' branch using Force Push
107-
bash ../main-scripts/.github/scripts/push-badge.sh
106+
bash $GITHUB_WORKSPACE/../main-scripts/.github/scripts/push-badge.sh

0 commit comments

Comments
 (0)