diff --git a/.github/workflows/sslt Go Build.yml b/.github/workflows/sslt Go Build.yml index fa8099b..8f3cbf6 100644 --- a/.github/workflows/sslt Go Build.yml +++ b/.github/workflows/sslt Go Build.yml @@ -85,10 +85,10 @@ jobs: # 获取 用户仓库 设置的 URL, 如果没有就输出 Github 地址 URL="$(jq -r .homepage <(echo ${RESPONSE}))" - if [[ "${URL}" != "null" || "${URL}" != "" ]]; then - echo "::set-output name=URL::${URL}" - else + if [[ "${URL}" =~ (null|) ]]; then echo "::set-output name=URL::${{ GITHUB.SERVER_URL }}/${{ GITHUB.REPOSITORY }}" + else + echo "::set-output name=URL::${URL}" fi - name: Send dingding notify