From 0882451c67846dcd38b1fbad63487e28eb5b7549 Mon Sep 17 00:00:00 2001 From: DevContainer User Date: Wed, 4 Mar 2026 01:45:37 +0000 Subject: [PATCH] fix: handle same-name tarball in release workflow headlamp-plugin package already produces {name}-{version}.tar.gz, so mv fails when source and destination are the same file. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 31925ce..8d9874b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -81,7 +81,10 @@ jobs: VERSION="${{ inputs.version }}" PKG_NAME=$(jq -r .name package.json) TARBALL="${PKG_NAME}-${VERSION}.tar.gz" - mv *.tar.gz "$TARBALL" + # Rename tarball if headlamp-plugin produced a different name + for f in *.tar.gz; do + [ "$f" != "$TARBALL" ] && mv "$f" "$TARBALL" + done echo "TARBALL=$TARBALL" >> $GITHUB_ENV echo "PKG_NAME=$PKG_NAME" >> $GITHUB_ENV