From c41de67c2afc82b925c4859e92c2d9534c6d68c1 Mon Sep 17 00:00:00 2001 From: KaGaMi Date: Sat, 12 Jul 2025 20:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=86=99=E9=95=9C=E5=83=8F=E5=90=8D12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index dcdde0e..587c1a5 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -15,8 +15,14 @@ jobs: - name: 输出所有Gitea Actions变量 (JSON格式) run: | + REPOSITORY_OWNER="${{ gitea.repository_owner }}" + echo "📦 镜像名称: $ZXC" - echo "${ "${{ gitea.repository }}" # "${{ gitea.repository_owner }}/" }" + REPOSITORY="${{ gitea.repository }}" + echo "📦 镜像名称: $REPOSITORY" + + REPO_NAME=${REPOSITORY_OWNER#$REPOSITORY/} + echo "📦 截取后的仓库名称: $REPO_NAME" - name: 登录到Gitea Container Registry