diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e189a8d..2c68e25 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,9 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out repository code - uses: actions/checkout@v4 - + # 使用 git clone 而非 actions/checkout + - name: Clone repository + run: | + URL="${GITEA_SERVER_URL}/${GITEA_REPOSITORY}.git" + git clone $URL . + git checkout ${{ gitea.sha }} + - name: Install Rust run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal