Skip to content

Aviary 4903 aviary 4905 aviary 4906 aviary 4907 embeded code type #57

Aviary 4903 aviary 4905 aviary 4906 aviary 4907 embeded code type

Aviary 4903 aviary 4905 aviary 4906 aviary 4907 embeded code type #57

Workflow file for this run

name: Delete Branch
on:
pull_request:
types:
- closed
branches:
- dev
- main
jobs:
delete_branch:
name: Delete Branch After Merge Is Complete
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref != 'main' && github.event.pull_request.head.ref != 'dev'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: git push origin --delete ${{ github.event.pull_request.head.ref }}