From 29e1a0109c4039cd2b7db9857349111cbee6798d Mon Sep 17 00:00:00 2001 From: Shakir Almasaari <35549045+shakir85@users.noreply.github.com> Date: Sat, 8 Feb 2025 00:34:54 -0800 Subject: [PATCH] Fix git flag --- .github/workflows/delete-branch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/delete-branch.yml b/.github/workflows/delete-branch.yml index 27a604e..3e1612f 100644 --- a/.github/workflows/delete-branch.yml +++ b/.github/workflows/delete-branch.yml @@ -3,7 +3,7 @@ name: Delete Feature Branch After PR Merge on: pull_request: types: - - closed + - closed jobs: delete-branch: @@ -21,7 +21,7 @@ jobs: - name: Delete feature branch run: | - git fetch prune + git fetch --prune git push origin --delete ${{ github.head_ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}