From e23dbd4df200c60fab7a5712d00894d83b88f407 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 30 Nov 2025 16:12:04 -0600 Subject: [PATCH] echo content --- .gitea/workflows/render-manifests.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/render-manifests.yaml b/.gitea/workflows/render-manifests.yaml index 8e4c07e7f..cf03f4eac 100644 --- a/.gitea/workflows/render-manifests.yaml +++ b/.gitea/workflows/render-manifests.yaml @@ -163,7 +163,7 @@ jobs: echo ">> Gitea API Response Body ... echo "---- - cat /tmp/pr_response.json + echo "$(cat /tmp/pr_response.json)" echo "---- if [ "$HTTP_STATUS" == "201" ]; then @@ -175,16 +175,19 @@ jobs: elif [ "$HTTP_STATUS" == "422" ]; then echo ">> Failed to create PR (HTTP 422: Unprocessable Entity), PR may already exist" - else echo ">> Failed to create PR, HTTP status code: $HTTP_STATUS" - - echo ">> Removing branch: ${HEAD_BRANCH}" - git push origin --delete ${HEAD_BRANCH} - exit 1 fi + - name: Cleanup Branch + if: failure() && steps.create-pull-request.outcome == 'failure' + env: + HEAD_BRANCH: ${{ steps.commit-push.outputs.HEAD_BRANCH }} + run: | + echo ">> Removing branch: ${HEAD_BRANCH}" + git push origin --delete ${HEAD_BRANCH} + # - name: ntfy Created # uses: niniyas/ntfy-action@master # if: steps.create-pull-request.outputs.pull-request-operation == 'created'