From a487a13b899a85875ae72e9f37e6513838c811e5 Mon Sep 17 00:00:00 2001 From: starmen1265 Date: Sun, 1 Mar 2026 23:25:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8=E6=A0=87?= =?UTF-8?q?=E5=87=86=20actions/checkout=20=E6=A3=80=E5=87=BA=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9433c43..6601baf 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,9 +15,7 @@ jobs: image: gitea-runner-php:latest steps: - name: 检出代码 - run: | - git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git . - git checkout ${{ github.sha }} + uses: actions/checkout@v4 - name: 安装依赖 run: composer install --prefer-dist --no-progress --no-interaction @@ -50,9 +48,7 @@ jobs: needs: lint steps: - name: 检出代码 - run: | - git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }}.git . - git checkout ${{ github.sha }} + uses: actions/checkout@v4 - name: 安装依赖 run: composer install --prefer-dist --no-progress --no-interaction