diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 545fc756..6fa3a9cf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -261,6 +261,12 @@ jobs: sdkPattern="github.com\/networkservicemesh\/sdk " sdkVersion=$(grep --regexp "${sdkPattern}" go.mod) branchName="${sdkVersion:${#sdkPattern}}" + else + { + git push origin --delete update/"${branchName}" + } || { + echo Branch update/"${branchName}" is already deleted + } fi; git config --global user.email "nsmbot@networkservicmesh.io" git config --global user.name "NSMBot" diff --git a/.github/workflows/update-integration-k8s-kind.yaml b/.github/workflows/update-integration-k8s-kind.yaml index 01866e06..152c678e 100644 --- a/.github/workflows/update-integration-k8s-kind.yaml +++ b/.github/workflows/update-integration-k8s-kind.yaml @@ -58,6 +58,13 @@ jobs: sdkPattern="github.com\/networkservicemesh\/sdk " sdkVersion=$(grep --regexp "${sdkPattern}" go.mod) branchName="${sdkVersion:${#sdkPattern}}" + else + { + git push origin --delete update/"${branchName}" + } || { + echo Branch update/"${branchName}" is already deleted + } + fi; fi; git config --global user.email "nsmbot@networkservicmesh.io" git config --global user.name "NSMBot"