From e52118db936d5e2b6a86c67a3d5651ec459cdb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 13 Oct 2021 10:08:10 +0200 Subject: [PATCH] Use correct build url (#10258) --- gallery/script/netlify_build_gallery | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery/script/netlify_build_gallery b/gallery/script/netlify_build_gallery index a1d5bb09a9..173b77d73f 100755 --- a/gallery/script/netlify_build_gallery +++ b/gallery/script/netlify_build_gallery @@ -22,12 +22,12 @@ if [[ "${PULL_REQUEST}" == "false" ]]; then else if [[ "$(curl -sSLf -H "Accept: application/vnd.github.v3+json" -H "Authorization: token $GITHUB_TOKEN" \ "https://api.github.com/repos/home-assistant/frontend/pulls/${REVIEW_ID}" | jq '.labels[].name' -r)" =~ "$TARGET_LABEL" ]]; then - createStatus "pending" "Building gallery preview" "$DEPLOY_URL" + createStatus "pending" "Building gallery preview" "https://app.netlify.com/sites/home-assistant-gallery/deploys/$BUILD_ID" gulp build-gallery if [ $? -eq 0 ]; then createStatus "success" "Build complete" "$DEPLOY_URL" else - createStatus "error" "Build failed" "$DEPLOY_URL" + createStatus "error" "Build failed" "https://app.netlify.com/sites/home-assistant-gallery/deploys/$BUILD_ID" fi else createStatus "success" "Build was not requested by PR label"