Skip to content

Commit 6545b08

Browse files
authored
[CI] fix docs ci (#720)
1 parent f5fca05 commit 6545b08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish_docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ jobs:
2727
TARGET_REPO: ${{ secrets.TARGET_REPO }}
2828
TARGET_TOKEN: ${{ secrets.TARGET_TOKEN }}
2929
run: |
30+
git clone https://github.com/${TARGET_REPO}.git -b main target_repo
31+
cd target_repo
3032
git config --local user.name "github-actions[bot]"
3133
git config --local user.email "github-actions[bot]@users.noreply.github.com"
32-
git clone https://github.com/${TARGET_REPO}.git target_repo
33-
cd target_repo
34-
git checkout main
3534
find . -mindepth 1 -maxdepth 1 ! -name ".github" ! -name "." ! -name ".git" -exec rm -rf {} +
3635
cp -r ../docs/_build/html/* ./
3736
git add .

0 commit comments

Comments
 (0)