diff --git a/.github/workflows/index-collection.yaml b/.github/workflows/index-collection.yaml index 061c1704..66b9cfee 100644 --- a/.github/workflows/index-collection.yaml +++ b/.github/workflows/index-collection.yaml @@ -57,7 +57,8 @@ jobs: NEWFOLDER="$(dirname "$FILE")/$BASE" NEWFILE="$(dirname "$FILE")/$BASE/$FILENAME" mkdir -v "$NEWFOLDER" - git mv -v "$FILE" "$NEWFILE" + mv -v "$FILE" "$NEWFILE" + git rm --cached "$FILE" git add "$NEWFILE" fi done