Skip to content

Commit

Permalink
[Fix][CI] kubectl plugin krew index CI error
Browse files Browse the repository at this point in the history
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
  • Loading branch information
MortalHappiness committed Feb 11, 2025
1 parent 0d848f9 commit 02599f1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/kubectl-plugin-release.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: release-kubectl-plugin
on:
workflow_dispatch:
inputs:
tag:
description: 'Desired release version tag (e.g. v1.1.0-rc.1).'
required: true

jobs:
release-kubectl-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag }}
fetch-tags: 'true'
- name: Show tag
run: git show-ref --head --dereference | grep "$(git rev-parse HEAD)"
fetch-depth: 0
- name: Error if not a tag
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: |
echo "::error not a tag"
exit 1
- name: Setup Go
uses: actions/setup-go@v5
with:
Expand All @@ -29,5 +28,5 @@ jobs:
workdir: 'kubectl-plugin'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.46
# - name: Update new version in krew-index
# uses: rajatjindal/krew-release-bot@v0.0.46

0 comments on commit 02599f1

Please sign in to comment.