diff --git a/.github/workflows/deploy-cn.yml b/.github/workflows/deploy-cn.yml index e4746faa760..90833817cc5 100644 --- a/.github/workflows/deploy-cn.yml +++ b/.github/workflows/deploy-cn.yml @@ -16,7 +16,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - fetch-depth: 1 + fetch-depth: 0 + ref: main - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: diff --git a/.github/workflows/gh-page.yml b/.github/workflows/gh-page.yml index 49ac94a0b44..6ca444965b6 100644 --- a/.github/workflows/gh-page.yml +++ b/.github/workflows/gh-page.yml @@ -15,7 +15,8 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - fetch-depth: 1 + fetch-depth: 0 + ref: main - name: Setup Hugo uses: peaceiris/actions-hugo@v3