fix: track tns-csi appVersion in artifacthub metadata
Update appVersion to 0.12.0 (current latest tns-csi release). Add a release workflow step that fetches the latest fenio/tns-csi release tag and updates appVersion automatically on each plugin release. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,6 +61,16 @@ jobs:
|
|||||||
sed -i "s|^version:.*|version: \"${VERSION}\"|" artifacthub-pkg.yml
|
sed -i "s|^version:.*|version: \"${VERSION}\"|" artifacthub-pkg.yml
|
||||||
sed -i "s|headlamp/plugin/archive-url:.*|headlamp/plugin/archive-url: \"${RELEASE_URL}\"|" artifacthub-pkg.yml
|
sed -i "s|headlamp/plugin/archive-url:.*|headlamp/plugin/archive-url: \"${RELEASE_URL}\"|" artifacthub-pkg.yml
|
||||||
|
|
||||||
|
- name: Update appVersion from latest tns-csi release
|
||||||
|
run: |
|
||||||
|
APP_VERSION=$(curl -sf https://api.github.com/repos/fenio/tns-csi/releases/latest | jq -r '.tag_name | ltrimstr("v")')
|
||||||
|
if [ -z "$APP_VERSION" ] || [ "$APP_VERSION" = "null" ]; then
|
||||||
|
echo "::warning::Could not fetch latest tns-csi release, skipping appVersion update"
|
||||||
|
else
|
||||||
|
sed -i "s|^appVersion:.*|appVersion: \"${APP_VERSION}\"|" artifacthub-pkg.yml
|
||||||
|
echo "appVersion set to ${APP_VERSION}"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ license: Apache-2.0
|
|||||||
category: storage
|
category: storage
|
||||||
|
|
||||||
homeURL: https://github.com/privilegedescalation/headlamp-tns-csi-plugin
|
homeURL: https://github.com/privilegedescalation/headlamp-tns-csi-plugin
|
||||||
appVersion: "0.1.0"
|
appVersion: "0.12.0"
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
- headlamp
|
- headlamp
|
||||||
|
|||||||
Reference in New Issue
Block a user