From 3a2a61203818d56b475aeb4902f312e5c2c34e95 Mon Sep 17 00:00:00 2001 From: Lucas Rodriguez Date: Thu, 23 May 2024 19:49:46 -0500 Subject: [PATCH] fix(release): do not delete testdata in release workflow (#2547) ## Description Fixes an issue where `make delete-packages` in the `cleanup-files` action of the release workflow deletes `src/pkg/packager/sources/testdata/zarf-package-wordpress-amd64-16.0.4.tar.zst`, causing `git` to be in a dirty state and the workflow to fail. image https://github.com/defenseunicorns/zarf/actions/runs/9216112744/job/25356360304#step:11:92 Signed-off-by: Austin Abro --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 62bbf3b859..2f397ae821 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ destroy: ## Run `zarf destroy` on the current cluster rm -fr build delete-packages: ## Delete all Zarf package tarballs in the project recursively - find . -type f -name 'zarf-package-*' -delete + find . -type f -name 'zarf-package-*' -not -path '*/testdata/*' -print -delete # Note: the path to the main.go file is not used due to https://github.com/golang/go/issues/51831#issuecomment-1074188363 .PHONY: build