Skip to content

Commit 80b147d

Browse files
committed
fixup! feat(ci): add lychee broken link test
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent a105362 commit 80b147d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ jobs:
233233
- name: Add various redirects for go.php and user_manual english version
234234
run: |
235235
# Fetch source branches so git checkout origin/... works from the gh-pages checkout
236-
git fetch origin ${{ github.event.repository.default_branch }} ${{ github.ref_name }}
236+
git fetch origin ${{ github.event.repository.default_branch }}
237237
238238
# Generate go.php redirect from main branch
239239
git checkout origin/${{ github.event.repository.default_branch }} -- go.php/index.html
240240
mkdir -p server/${{ steps.branch.outputs.branch_name }}/go.php
241241
mv go.php/index.html server/${{ steps.branch.outputs.branch_name }}/go.php/index.html
242242
243243
# Generate user_manual english redirect
244-
git checkout origin/${{ github.ref_name }} -- user_manual/index.html
244+
git checkout HEAD -- user_manual/index.html
245245
mkdir -p server/${{ steps.branch.outputs.branch_name }}/user_manual
246246
mv user_manual/index.html server/${{ steps.branch.outputs.branch_name }}/user_manual/index.html
247247

0 commit comments

Comments
 (0)