From 5b3d1af41502255fc345814e485d47109e94b3eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E9=BA=A6?= Date: Tue, 10 Mar 2026 19:40:12 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E5=A4=8D=20Gitea=20Actions=20?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=20+=20=E6=B7=BB=E5=8A=A0=20checkout=20?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: - Gitea Actions 使用 ${{ gitea.xxx }} 而非 ${{ github.xxx }} - 缺少 actions/checkout@v4 步骤获取代码 修复: - 添加 checkout 步骤 - 修正 Gitea 语法 --- .gitea/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ca64c5a..e189a8d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,6 +11,9 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Install Rust run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal @@ -89,4 +92,4 @@ jobs: GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} GITEA_SERVER_URL: http://192.168.120.110:4000 GITEA_REPOSITORY: damai/readflow - GITEA_REF_NAME: ${{ github.ref_name }} + GITEA_REF_NAME: ${{ gitea.ref_name }}