From f0f95d5097d4d83b66a71900e288fb8763fd85f2 Mon Sep 17 00:00:00 2001 From: qxa Date: Fri, 10 Apr 2026 13:49:05 +0800 Subject: [PATCH] 1 --- action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 83744a9..4bdf871 100644 --- a/action.yaml +++ b/action.yaml @@ -30,9 +30,10 @@ runs: current_date=$(date +"%Y.%m.%d" | sed 's/\.0/\./g') echo "current_date=$current_date" + echo "curl -H 'Authorization:token ${{ inputs.token }}' ${{ inputs.server_url }}/api/v1/repos/${{ gitea.repository }}/releases" # 获取所有发布版本号 json='' - json=$(curl -H 'Authorization:token ${{ inputs.token }}' ${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases) + json=$(curl -H 'Authorization:token ${{ inputs.token }}' ${{ inputs.server_url }}/api/v1/repos/${{ gitea.repository }}/releases) # 检查是否存在当前日期的版本 if [ -n "$json" ]; then