From 3e0cb21863ae47dd62153fd5eda91f2ea586d2da Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 30 Nov 2025 17:08:27 -0600 Subject: [PATCH] change --- .gitea/workflows/render-manifests.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/render-manifests.yaml b/.gitea/workflows/render-manifests.yaml index 467a86a6a..1d7a6e222 100644 --- a/.gitea/workflows/render-manifests.yaml +++ b/.gitea/workflows/render-manifests.yaml @@ -148,27 +148,32 @@ jobs: '{head: $head, base: $base, title: $title, body: $body'} ) echo ">> Creating PR from branch ${HEAD_BRANCH} into ${BASE_BRANCH}" + echo ">> With Endpoint of:" + echo "$API_ENDPOINT" echo ">> With Payload of:" echo "$PAYLOAD" - #HTTP_STATUS=$( + HTTP_STATUS=$( curl -X POST \ - --output /tmp/pr_response \ + --silent \ + --write-out '%{http_code}' \ + --output pr_response \ --data "$PAYLOAD" \ -H "Authorization: token ${GITEA_TOKEN}" \ -H "Content-Type: application/json" \ "$API_ENDPOINT" - #) + ) + echo ">> HTTP Status Code: $HTTP_STATUS" echo ">> Gitea API Response Body ..." echo "----" - cat /tmp/pr_response + cat pr_response echo "----" if [ "$HTTP_STATUS" == "201" ]; then echo ">> Pull Request created successfully!" - PR_URL=$(cat /tmp/pr_response.json | jq -r .html_url) + PR_URL=$(cat pr_response.json | jq -r .html_url) echo "pull-request-url=${PR_URL}" >> $GITEA_OUTPUT echo "pull-request-operation=created" >> $GITEA_OUTPUT