From a46d0e751992431c4b95a637fe24eccb4255a394 Mon Sep 17 00:00:00 2001 From: DevContainer User Date: Wed, 4 Mar 2026 02:01:04 +0000 Subject: [PATCH] fix: handle tarball already having correct name in release workflow The headlamp-plugin package command already produces a tarball named {pkg}-{version}.tar.gz, so the mv command 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 db8db0a..0fc0e3f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -71,7 +71,10 @@ jobs: VERSION="${{ inputs.version }}" PKG_NAME=$(jq -r .name package.json) TARBALL="${PKG_NAME}-${VERSION}.tar.gz" - mv *.tar.gz "$TARBALL" + ACTUAL=$(ls *.tar.gz) + if [ "$ACTUAL" != "$TARBALL" ]; then + mv "$ACTUAL" "$TARBALL" + fi echo "TARBALL=$TARBALL" >> $GITHUB_ENV echo "PKG_NAME=$PKG_NAME" >> $GITHUB_ENV