From cd68af81c6233b208db6c8012324a368a6ecb432 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Fri, 21 Nov 2025 03:01:44 -0500 Subject: [PATCH] delete branch after creation --- .gitea/workflows/write-new-template.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/write-new-template.yml b/.gitea/workflows/write-new-template.yml index 614162e..607a62d 100644 --- a/.gitea/workflows/write-new-template.yml +++ b/.gitea/workflows/write-new-template.yml @@ -37,3 +37,9 @@ jobs: "head": "template-extraction-${{ github.run_number }}", "base": "main" }' + + - name: Delete Branch + run: | + curl -X DELETE \ + "https://git.alexav.gg/api/v1/repos/alex/homelab/branches/template-extraction-${{ github.run_number }}" \ + -H "Authorization: token ${{ secrets.TOKEN }}"