Skip to content

chore(main): release 1.7.6 #10

chore(main): release 1.7.6

chore(main): release 1.7.6 #10

name: Delete closed PR branch
on:
pull_request:
types: [closed]
permissions:
contents: write
jobs:
delete:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
BRANCH: ${{ github.event.pull_request.head.ref }}
run: gh api -X DELETE "repos/$REPO/git/refs/heads/$BRANCH" 2>/dev/null || true