Update github-build.yml
This commit is contained in:
parent
1ec1cc4e4e
commit
25484e5222
@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
# 获取 用户仓库 设置的 URL, 如果没有就输出 Github 地址
|
# 获取 用户仓库 设置的 URL, 如果没有就输出 Github 地址
|
||||||
URL="$(jq -r .homepage <(echo ${RESPONSE}))"
|
URL="$(jq -r .homepage <(echo ${RESPONSE}))"
|
||||||
if [ -n "${URL}" ]; then
|
if [[ "${URL}" =~ (null|) ]]; then
|
||||||
echo "::set-output name=URL::${URL}"
|
echo "::set-output name=URL::${URL}"
|
||||||
else
|
else
|
||||||
echo "::set-output name=URL::${{ GITHUB.SERVER_URL }}/${{ GITHUB.REPOSITORY }}"
|
echo "::set-output name=URL::${{ GITHUB.SERVER_URL }}/${{ GITHUB.REPOSITORY }}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user