Skip to content

Commit

Permalink
[RBP-21] PR merge 된 브랜치 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
cgpathos committed Apr 30, 2024
1 parent 2df806b commit aaa7754
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/r2d_chk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: clean-up-feat-pull-request

on:
pull_request:
types: [ closed ]
branches:
- 'feat/**'

jobs:
delete_branch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Delete merged branch
if: github.event.pull_request.merged == true
id: open-pr
run: |
git branch -d ${{ github.event.pull_request.head.ref }}
git push origin --delete ${{ github.event.pull_request.head.ref }}

0 comments on commit aaa7754

Please sign in to comment.