forked from karmada-io/karmada
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only update krew index for latest stable version.
Signed-off-by: Lan Liang <[email protected]>
- Loading branch information
1 parent
a61d36a
commit 31177dd
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -200,11 +200,22 @@ jobs: | |
base64-subjects: "${{ needs.sbom-assests.outputs.hashes }}" | ||
provenance-name: "karmada-sbom.intoto.jsonl" | ||
upload-assets: true | ||
|
||
update-krew-index: | ||
needs: release-assests | ||
needs: | ||
- release-assests | ||
name: Update krew-index | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: get latest tag | ||
id: get-latest-tag | ||
run: | | ||
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 "latestTag=$LATEST_TAG" >> "$GITHUB_OUTPUT" | ||
- uses: actions/checkout@v4 | ||
if: steps.get-latest-tag.outputs.latestTag == github.event.release.tag_name | ||
- name: Update new version in krew-index | ||
if: steps.get-latest-tag.outputs.latestTag == github.event.release.tag_name | ||
uses: rajatjindal/[email protected] |