From 9454e03b9bf1060701f77fea960dfdbf275565a0 Mon Sep 17 00:00:00 2001 From: denis-tingajkin Date: Mon, 9 Nov 2020 22:29:07 +0700 Subject: [PATCH] fix error: "too many arguments" Signed-off-by: denis-tingajkin --- .github/workflows/ci.yaml | 6 ++++++ .github/workflows/update-integration-k8s-kind.yaml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 545fc75..6fa3a9c 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 01866e0..152c678 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"