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