diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index bea7efc..6536e8a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,7 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - name: 检出代码 - uses: actions/checkout@v4 + run: | + git config --global --add safe.directory '*' + git clone "http://token:${{ github.token }}@192.168.100.125:3000/${{ github.repository }}.git" . + git checkout "${{ github.sha }}" - name: 安装 ssh 工具 run: |