diff --git a/.github/workflows/verslagen-generate-index.yaml b/.github/workflows/verslagen-generate-index.yaml index 9d8617b..a75c30b 100644 --- a/.github/workflows/verslagen-generate-index.yaml +++ b/.github/workflows/verslagen-generate-index.yaml @@ -20,17 +20,26 @@ jobs: echo "" >> index.md for dir in */; do - dir=$(echo "$dir" | sed 's/ /\\ /g') + dir=${dir%/} if [ -d "$dir" ]; then echo "## $dir" >> index.md - for file in "$dir"*; do - file=$(echo "$file" | sed 's/ /\\ /g') - filename=$(basename "$file") - echo "- [$filename]($file)" >> index.md + find "$dir" -type f | while read -r file; do + file_link=$(echo "$file" | sed 's/ /%20/g') + file_name=$(basename "$file") + echo "- [$file_name]($file_link)" >> index.md done echo "" >> index.md fi done + + # for dir in /; do + # dir=${dir%/} + # if [ -d "$dir" ]; then + # echo "## $dir" >> index.md + # find "$dir" -type f -printf "- [%f](%p)\n" | sort >> index.md + # echo "" >> index.md + # fi + # done - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: diff --git a/docs/verslagen/Softwareleveranciers overleg/fluisterspelletje2.png b/docs/verslagen/Beheercommissie/fluisterspelletje2.png similarity index 100% rename from docs/verslagen/Softwareleveranciers overleg/fluisterspelletje2.png rename to docs/verslagen/Beheercommissie/fluisterspelletje2.png diff --git a/docs/verslagen/Beheercommissie/RDF & SPARQL Uitleg.pdf b/docs/verslagen/Softwareleveranciers overleg/RDF & SPARQL Uitleg.pdf similarity index 100% rename from docs/verslagen/Beheercommissie/RDF & SPARQL Uitleg.pdf rename to docs/verslagen/Softwareleveranciers overleg/RDF & SPARQL Uitleg.pdf