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"