Skip to content

Commit

Permalink
[Fix][CI] kubectl plugin krew index CI error (ray-project#3015)
Browse files Browse the repository at this point in the history
Signed-off-by: Chi-Sheng Liu <chishengliu@chishengliu.com>
  • Loading branch information
MortalHappiness authored Feb 11, 2025
1 parent 0d848f9 commit f6bf32f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 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
uses: actions/github-script@v7
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
script: core.setFailed('This action can only be run on tags')
- name: Setup Go
uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit f6bf32f

Please sign in to comment.