This commit is contained in:
parent
8428129e81
commit
f0f95d5097
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue