From 12cab6ccc29e8aa9188c8282ed82c641fded57a6 Mon Sep 17 00:00:00 2001 From: Filip-L <67787091+Filip-L@users.noreply.github.com> Date: Wed, 13 Aug 2025 13:38:10 +0200 Subject: [PATCH] Update close-merged-branch.yml --- .github/workflows/close-merged-branch.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/close-merged-branch.yml b/.github/workflows/close-merged-branch.yml index 154cb51..4c6ccc6 100644 --- a/.github/workflows/close-merged-branch.yml +++ b/.github/workflows/close-merged-branch.yml @@ -1,18 +1,11 @@ -name: delete branch on close pr +name: delete branch on close pr (deprecated) + on: - pull_request: - types: [closed] + workflow_dispatch: jobs: delete-branch: runs-on: ubuntu-latest - env: - BACKEND_URL: https://api.allocator.tech steps: - - name: Delete branch - run: | - REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2) - BRANCH_NAME=${{ github.head_ref }} - curl -f -X POST "${BACKEND_URL}/application/branch/delete" \ - -H "Content-Type: application/json" \ - -d '{"owner": "'${{ github.repository_owner }}'", "repo": "'$REPO_NAME'", "branch_name": "'$BRANCH_NAME'"}' + - name: Deprecated notice + run: echo "Action deprecated"