From 8e815db504ea0bcbc538f7955beb57158351514b Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Tue, 1 Oct 2024 11:23:17 -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 934b94f..a8a7944 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