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