ci: Fix undefined variable

This commit is contained in:
Lucas Schwiderski 2023-11-27 16:12:11 +01:00
parent 12e01075d9
commit 316a5aaa33
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8

View file

@ -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