Skip to content

[Refactor] sprinkles ์ œ๊ฑฐ #97

[Refactor] sprinkles ์ œ๊ฑฐ

[Refactor] sprinkles ์ œ๊ฑฐ #97

name: Cleanup merged branches
on:
pull_request:
types: [closed]
jobs:
cleanup:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Delete branch
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git push origin --delete ${{ github.event.pull_request.head.ref }} || echo "Branch already deleted or does not exist"