From 489f453c1cba97cb6c745ab6433266af48d4936f Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 2 Dec 2025 20:09:31 -0600 Subject: [PATCH] fix to account for array --- .gitea/workflows/render-manifests.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/render-manifests.yaml b/.gitea/workflows/render-manifests.yaml index 6a3883926..0e71c5a8f 100644 --- a/.gitea/workflows/render-manifests.yaml +++ b/.gitea/workflows/render-manifests.yaml @@ -254,13 +254,13 @@ jobs: cat response_errors.txt echo "----" - if [ "$HTTP_STATUS" == "200" ] && [ "$(cat response_body.json | jq -r .state)" == "open" ]; then + if [ "$HTTP_STATUS" == "200" ] && [ "$(cat response_body.json | jq -r .[0].state)" == "open" ]; then echo ">> Pull Request has been found open, will update" - PR_INDEX=$(cat response_body.json | jq -r .number) + PR_INDEX=$(cat response_body.json | jq -r .[0].number) echo "pull-request-exists=${PR_INDEX}" >> $GITEA_OUTPUT echo "pull-request-index=true" >> $GITEA_OUTPUT - elif [ "$HTTP_STATUS" == "200" ] && [ "$(cat response_body.json | jq -r .state)" == "closed" ]; then + elif [ "$HTTP_STATUS" == "200" ] && [ "$(cat response_body.json | jq -r .[0].state)" == "closed" ]; then echo ">> Pull Request found, but was closed" echo "pull-request-exists=false" >> $GITEA_OUTPUT