From 316a5aaa33cc650fb8fce8e3be10b20229d586d9 Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Mon, 27 Nov 2023 16:12:11 +0100 Subject: [PATCH] ci: Fix undefined variable --- .ci/tasks/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/tasks/build.sh b/.ci/tasks/build.sh index 5e60d7f..bb96775 100755 --- a/.ci/tasks/build.sh +++ b/.ci/tasks/build.sh @@ -19,7 +19,9 @@ install_artifact() { cd "repo" -if [ -n "${PR:-}" ]; then +PR=${PR:-} + +if [ -n "$PR" ]; then title "PR: $(echo "$PR" | jq '.number') - $(echo "$PR" | jq '.title')" ref="pr-$(echo "$PR" | jq '.number')-$(git rev-parse --short "$(cat .git/ref || echo "HEAD")" 2>/dev/null || echo 'manual')" else