File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments