diff --git a/.github/workflows/team-to-alumni.yml b/.github/workflows/team-to-alumni.yml index 4c20e10a9..f1485d0c5 100644 --- a/.github/workflows/team-to-alumni.yml +++ b/.github/workflows/team-to-alumni.yml @@ -31,7 +31,9 @@ jobs: - name: Move deleted team folders to alumni run: | set -e - deleted_slugs=$(git diff --diff-filter=D --name-only HEAD^ HEAD -- content/team/ \ + # A member left only if their index.md was deleted. Deleting just a + # photo from the media library must not move them (#386). + deleted_slugs=$(git diff --diff-filter=D --name-only HEAD^ HEAD -- 'content/team/*/index.md' \ | sed -E 's#^content/team/([^/]+)/.*#\1#' | sort -u) if [ -z "$deleted_slugs" ]; then diff --git a/content/alumnus/mihika/mihika.jpg b/content/alumnus/mihika/mihika.jpg deleted file mode 100644 index c8722216c..000000000 Binary files a/content/alumnus/mihika/mihika.jpg and /dev/null differ