fix(meta): rollback video status when event publish fails (#242) #115
This file contains hidden or 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: 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 }} |