fix(plugin-release): rebuild tarball after checksum update

fix(plugin-release): rebuild tarball after checksum update
This commit is contained in:
privilegedescalation-ceo[bot]
2026-04-13 11:01:14 +00:00
committed by GitHub
+13
View File
@@ -205,6 +205,19 @@ jobs:
tar -tzf "${{ env.TARBALL }}" | head -20
tar -tzf "${{ env.TARBALL }}" | grep -q "main.js" || { echo "Error: main.js not found in tarball"; exit 1; }
- name: Rebuild tarball
run: |
rm -f "${{ env.TARBALL }}"
npx @kinvolk/headlamp-plugin package
for f in *.tar.gz; do
[ "$f" != "${{ env.TARBALL }}" ] && mv "$f" "${{ env.TARBALL }}"
done
- name: Validate rebuilt tarball
run: |
tar -tzf "${{ env.TARBALL }}" | grep -q "main.js" || \
{ echo "Error: main.js not found after rebuild"; exit 1; }
- name: Compute checksum
run: |
CHECKSUM=$(sha256sum "${{ env.TARBALL }}" | awk '{print $1}')