This commit is contained in:
qxa 2026-04-10 13:59:47 +08:00
parent 31f04e11d3
commit 5f569c16d0
1 changed files with 2 additions and 2 deletions

View File

@ -30,10 +30,10 @@ runs:
current_date=$(date +"%Y.%m.%d" | sed 's/\.0/\./g')
echo "current_date=$current_date"
echo "正在调用API: ${{ inputs.server_url }}/api/v1/repos/${{ inputs.repository }}/releases"
echo "正在调用API: ${{ inputs.server_url }}/api/v1/repos/${{ gitea.repository }}/releases"
# 获取所有发布版本号
json=''
json=$(curl -s -H 'Authorization:token ${{ inputs.token }}' ${{ inputs.server_url }}/api/v1/repos/${{ inputs.repository }}/releases)
json=$(curl -s -H 'Authorization:token ${{ inputs.token }}' ${{ inputs.server_url }}/api/v1/repos/${{ gitea.repository }}/releases)
echo "API响应长度: ${#json}"
echo "API响应前100字符: ${json:0:100}"