From 54d49ed412114e44a0fa9aeb7ef0022e5867e886 Mon Sep 17 00:00:00 2001 From: shuting Date: Wed, 20 Jan 2021 14:17:39 -0800 Subject: [PATCH] revet GitHub action change for krew (#1484) Signed-off-by: Shuting Zhao --- .github/workflows/krew.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/krew.yaml b/.github/workflows/krew.yaml index 30c7b4e9e2..350ae1fdba 100644 --- a/.github/workflows/krew.yaml +++ b/.github/workflows/krew.yaml @@ -1,8 +1,10 @@ name: release kyverno-cli plugin on: - release: - types: - - published + push: + tags: + - 'v*' + - '!v*-rc*' + jobs: release-cli-via-krew: runs-on: ubuntu-latest @@ -14,5 +16,4 @@ jobs: run: git fetch --prune --unshallow - name: Update new version in krew-index - if: "!github.event.release.prerelease" uses: rajatjindal/krew-release-bot@v0.0.38