From ca1592c0499bf4a7aa218ec15550dc6779f04e67 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 14 Nov 2023 16:45:38 -0800 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ba6f60cb..746cd05e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -137,8 +137,8 @@ jobs: while i < 5; do i=0 RESPONSE=$(curl -sl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/microsoft/CoseSignTool/releases/tags/$NEW_TAG) - echo "RESPONSE: $RESPONSE" - if [[ $RESPONSE == *"Not Found"* ]]; then + echo "$RESPONSE" | jq -r '.message' + if [ "$(echo "$RESPONSE" | jq -r '.message')" == "Not Found" ]; then echo "Tag not found. We're good to go." break else