refactor: 使用标准 actions/checkout 检出代码
Test CI / 快速测试 (push) Successful in 13s

This commit is contained in:
2026-03-01 23:25:27 +08:00
parent b0312ef19e
commit a487a13b89
+2 -6
View File
@@ -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