Skip to content

Commit

Permalink
Update .github/workflows/release.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Hongcai Ren <[email protected]>
  • Loading branch information
liangyuanpeng and RainbowMango authored Aug 30, 2024
1 parent f9adbfb commit 2242636
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,13 @@ jobs:
name: Update krew-index
runs-on: ubuntu-22.04
steps:
- name: check latest tag
id: check-latest
- name: get latest tag
id: get-latest-tag
run: |
# get the latest version
export STABLE_TAG=`gh api repos/karmada-io/karmada/releases/latest | jq -r '.tag_name'`
echo "Got the stabe tag:$STABLE_TAG"
export LATEST_TAG=`gh api repos/karmada-io/karmada/releases/latest | jq -r '.tag_name'`
echo "Got the latest tag:$LATEST_TAG"
echo "event.tag:"${{ github.event.release.tag_name }}
echo "stableTag=$STABLE_TAG" >> "$GITHUB_OUTPUT"
echo "latestTag=$LATEST_TAG" >> "$GITHUB_OUTPUT"
- uses: actions/checkout@v4
if: steps.check-latest.outputs.stableTag == github.event.release.tag_name
- name: Update new version in krew-index
Expand Down

0 comments on commit 2242636

Please sign in to comment.