diff --git a/.gitea/workflows/AutoRelease.yaml b/.gitea/workflows/AutoRelease.yaml index 63f1096..efe3862 100644 --- a/.gitea/workflows/AutoRelease.yaml +++ b/.gitea/workflows/AutoRelease.yaml @@ -14,6 +14,14 @@ jobs: # 以下是steps steps: + # 检出仓库 + - name: Checkout + uses: https://gitee.com/actions-mirror/checkout@v4 + with: + fetch-depth: 0 + # 启用子模块支持 + submodules: true + - name: 设置环境变量 env: GITEA_TOKEN: ${{ secrets.AUTOGENERATE }} @@ -23,14 +31,6 @@ jobs: git config user.name "${{ github.actor }}" git config user.email "${{ github.actor }}@users.noreply.git.linuxacme.com" - # 检出仓库 - - name: Checkout - uses: https://gitee.com/actions-mirror/checkout@v4 - with: - fetch-depth: 0 - # 启用子模块支持 - submodules: true - - name: 替换软件源为国内软件源(USTC) run: | cat /etc/os-release