From 94e0a416aa8097fba1fef77272d19aa664ed3eb8 Mon Sep 17 00:00:00 2001 From: Evan Gibler Date: Fri, 10 May 2024 15:21:40 -0500 Subject: [PATCH] Fix archive extraction (#213) --- pkg/action/archive.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/action/archive.go b/pkg/action/archive.go index 717dafbbe..78c4f89b9 100644 --- a/pkg/action/archive.go +++ b/pkg/action/archive.go @@ -279,7 +279,8 @@ func extractArchiveToTempDir(ctx context.Context, path string) (string, error) { return "", fmt.Errorf("failed to create temp dir: %w", err) } - extract := extractionMethod(filepath.Ext(path)) + ext := getExt(path) + extract := extractionMethod(ext) if extract == nil { return "", fmt.Errorf("unsupported archive type: %s", path) }