Aviary 4903 aviary 4905 aviary 4906 aviary 4907 embeded code type #57
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: | |
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 }} |