Skip to content

Commit

Permalink
Removed Dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Oct 1, 2024
1 parent 0ffba70 commit 36179f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36179f6

Please sign in to comment.