This commit is contained in:
qxa 2026-04-10 13:49:05 +08:00
parent 8428129e81
commit f0f95d5097
1 changed files with 2 additions and 1 deletions

View File

@ -30,9 +30,10 @@ runs:
current_date=$(date +"%Y.%m.%d" | sed 's/\.0/\./g') current_date=$(date +"%Y.%m.%d" | sed 's/\.0/\./g')
echo "current_date=$current_date" echo "current_date=$current_date"
echo "curl -H 'Authorization:token ${{ inputs.token }}' ${{ inputs.server_url }}/api/v1/repos/${{ gitea.repository }}/releases"
# 获取所有发布版本号 # 获取所有发布版本号
json='' 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 if [ -n "$json" ]; then