File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,22 @@ jobs:
200
200
base64-subjects : " ${{ needs.sbom-assests.outputs.hashes }}"
201
201
provenance-name : " karmada-sbom.intoto.jsonl"
202
202
upload-assets : true
203
+
203
204
update-krew-index :
204
- needs : release-assests
205
+ needs :
206
+ - release-assests
205
207
name : Update krew-index
206
208
runs-on : ubuntu-22.04
207
209
steps :
210
+ - name : get latest tag
211
+ id : get-latest-tag
212
+ run : |
213
+ export LATEST_TAG=`gh api repos/karmada-io/karmada/releases/latest | jq -r '.tag_name'`
214
+ echo "Got the latest tag:$LATEST_TAG"
215
+ echo "event.tag:"${{ github.event.release.tag_name }}
216
+ echo "latestTag=$LATEST_TAG" >> "$GITHUB_OUTPUT"
208
217
- uses : actions/checkout@v4
218
+ if : steps.get-latest-tag.outputs.latestTag == github.event.release.tag_name
209
219
- name : Update new version in krew-index
220
+ if : steps.get-latest-tag.outputs.latestTag == github.event.release.tag_name
210
221
uses :
rajatjindal/[email protected]
You can’t perform that action at this time.
0 commit comments