Update f1mpypjmz4xxcxy3oql7ksxa2ggczoaetbvxq2qxq.json #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: delete branch on close pr | |
on: | |
pull_request: | |
types: [closed] | |
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 -X POST "${BACKEND_URL}/application/branch/delete" \ | |
-H "Content-Type: application/json" \ | |
-d '{"owner": "'${{ github.repository_owner }}'", "repo": "'$REPO_NAME'", "branch_name": "'$BRANCH_NAME'"}' |