From 6c6e8a55ce1662b419924230b9c89d3168d0e3e3 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 20 May 2026 22:13:45 +0000 Subject: [PATCH] fix: match .tar.gz instead of .tgz in release workflow grep pattern The headlamp-plugin package command outputs filenames with .tar.gz extension, not .tgz. This caused the "Get tarball path" step to fail (exit code 1) on the v1.0.1 release run #554. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 98f8860..df0729b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,11 +38,11 @@ jobs: id: tarball run: | # headlamp-plugin package outputs the tarball path, e.g.: - # "Packaged: /path/to/headlamp-polaris-1.0.0.tgz" + # "Packaged: /path/to/headlamp-polaris-1.0.0.tar.gz" output=$(pnpm run package 2>&1) echo "output=$output" - # Extract tarball name, e.g. headlamp-polaris-1.0.0.tgz - tarball_name=$(echo "$output" | grep -oP 'headlamp-polaris-\d+\.\d+\.\d+\.tgz' | tail -1) + # Extract tarball name, e.g. headlamp-polaris-1.0.0.tar.gz + tarball_name=$(echo "$output" | grep -oP 'headlamp-polaris-\d+\.\d+\.\d+\.tar\.gz' | tail -1) echo "tarball_name=$tarball_name" >> $GITHUB_OUTPUT - name: Create Gitea Release