Skip to content

Commit bb89adf

Browse files
authored
Update documentation.yml
Try to repair the checkout of the website branch.
1 parent 11dc9a2 commit bb89adf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ jobs:
5959
git worktree add --no-checkout --detach site
6060
git -C site remote rm origin
6161
git -C site remote add origin "https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}"
62+
git -C site fetch origin
6263
git -C site checkout --orphan gh-pages
6364
git -C site reset --hard
64-
git -C site read-tree --reset -u website
65+
git -C site read-tree --reset -u origin/website
6566
6667
- name: Generate Documentation
6768
run: |
@@ -73,7 +74,7 @@ jobs:
7374
run: |
7475
git -C site add --all
7576
git -C site commit --quiet --no-verify -m "${{ github.repository }}@${{ github.sha }}"
76-
git -C site push origin --force-with-lease HEAD:refs/heads/gh-pages
77+
git -C site push origin --force HEAD:refs/heads/gh-pages
7778
7879
- name: Cleanup
7980
run: |

0 commit comments

Comments
 (0)