From 37bc6103cf388729d9dbebb147ab2a90b7931687 Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Tue, 1 Oct 2024 11:23:10 -0500 Subject: [PATCH] Removed Dupes --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b771ec..fea7b84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -252,8 +252,12 @@ jobs: declare -A subjects # Get the list of PNG files added in the latest commit - images=$(git diff --name-only HEAD~1 HEAD | grep '\.png$') - echo "Images: $images" + images=$(git diff --name-only HEAD~1 HEAD | grep '\.png$' || true) + echo "Images: $images" + if [ -z "$images" ]; then + echo "No new images found. Skipping post generation." + exit 0 + fi # Iterate over each PNG file and group them by subject number for file in $images; do