From 44a43f7610226a640418874cf116177866e2dc32 Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Wed, 22 Jan 2025 10:41:21 +0800 Subject: [PATCH] WIP: Debug CI Signed-off-by: Chi-Sheng Liu --- .github/workflows/kubectl-plugin-release.yaml | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/kubectl-plugin-release.yaml b/.github/workflows/kubectl-plugin-release.yaml index 6dd22157466..8cec94421bc 100644 --- a/.github/workflows/kubectl-plugin-release.yaml +++ b/.github/workflows/kubectl-plugin-release.yaml @@ -1,5 +1,6 @@ name: release-kubectl-plugin on: + pull_request: workflow_dispatch: inputs: tag: @@ -13,18 +14,21 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.tag }} - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: '1.22' - - name: GoReleaser - uses: goreleaser/goreleaser-action@v6 - with: - distribution: 'goreleaser' - version: latest - args: release --clean - workdir: 'kubectl-plugin' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Update new version in krew-index - uses: rajatjindal/krew-release-bot@v0.0.46 + fetch-tags: 'true' + - name: Show tag + run: git show HEAD +# - name: Setup Go +# uses: actions/setup-go@v5 +# with: +# go-version: '1.22' +# - name: GoReleaser +# uses: goreleaser/goreleaser-action@v6 +# with: +# distribution: 'goreleaser' +# version: latest +# args: release --clean +# workdir: 'kubectl-plugin' +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# - name: Update new version in krew-index +# uses: rajatjindal/krew-release-bot@v0.0.46