Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/close-merged-branch.yml
Original file line number Diff line number Diff line change
@@ -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"
Loading