ci: Fix undefined variable
This commit is contained in:
parent
12e01075d9
commit
316a5aaa33
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,9 @@ install_artifact() {
|
||||||
|
|
||||||
cd "repo"
|
cd "repo"
|
||||||
|
|
||||||
if [ -n "${PR:-}" ]; then
|
PR=${PR:-}
|
||||||
|
|
||||||
|
if [ -n "$PR" ]; then
|
||||||
title "PR: $(echo "$PR" | jq '.number') - $(echo "$PR" | jq '.title')"
|
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')"
|
ref="pr-$(echo "$PR" | jq '.number')-$(git rev-parse --short "$(cat .git/ref || echo "HEAD")" 2>/dev/null || echo 'manual')"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue