From 2758ad3dcd711d79fe9814901b67ba302ef4cbad Mon Sep 17 00:00:00 2001 From: David Nestorovic Date: Tue, 19 Nov 2024 17:39:10 +0100 Subject: [PATCH] Check existing issue url against null --- .github/workflows/check-new-library-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-new-library-versions.yml b/.github/workflows/check-new-library-versions.yml index 2d12cf13..695d011c 100644 --- a/.github/workflows/check-new-library-versions.yml +++ b/.github/workflows/check-new-library-versions.yml @@ -161,7 +161,7 @@ jobs: FORMATTED_BODY=$(./gradlew -q groupLibrariesByName --libraries="$ALL_LIBRARIES") EXISTING_ISSUE=$(gh issue list --label "$LABEL" --state open --limit 1 --json url | jq -r '.[0].url') - if [ $EXISTING_ISSUE != "" ]; then + if [ $EXISTING_ISSUE != "null" ]; then gh issue edit $EXISTING_ISSUE --body "$FORMATTED_BODY" else gh issue create --title "List unsupported libraries versions" --body "$FORMATTED_BODY" --label $LABEL