From 22e177d0b8674bd4f6cd75c1d43efa5819935ee6 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Mon, 11 Sep 2023 15:52:57 +0800 Subject: [PATCH] fix: wrong delete for remote branch --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1114698..8de748c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,8 +96,9 @@ jobs: add_options: '-u' create_branch: true - - name: Delete branch + - name: Delete local and remote branches run: | git switch ${{ env.DEFAULT_BRANCH }} git branch -D ${{ steps.branch_name.outputs.BRANCH }} - git branch -D origin/${{ steps.branch_name.outputs.BRANCH }} + git push origin -d ${{ steps.branch_name.outputs.BRANCH }} + git branch -a