Skip to content

fix(meta): rollback video status when event publish fails (#242) #115

fix(meta): rollback video status when event publish fails (#242)

fix(meta): rollback video status when event publish fails (#242) #115

name: Cleanup stale branches
on:
pull_request:
types: [closed]
permissions:
contents: write
jobs:
delete-branch:
name: Delete closed PR branch
runs-on: arc-runner-set
if: >-
github.event.pull_request.merged == false &&
startsWith(github.event.pull_request.head.ref, 'release-plz-')
steps:
- name: Delete branch
run: |
gh api -X DELETE "repos/${{ github.repository }}/git/refs/heads/${{ github.event.pull_request.head.ref }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}