-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tussenversie * nieuwe top document * laatste versie * test github actions * verslagen vergeten * rerun * latest git-checkout * v3 * sample check * Update verslagen-generate-index.yaml * change filename * Update verslagen-index na upload * escape characters * test escape characters * Update verslagen-index na upload * change q to % * Update verslagen-index na upload * test without % or q * Update verslagen-index na upload * encode with %20 * Update verslagen-index na upload --------- Co-authored-by: Redmer Kronemeijer <[email protected]> Co-authored-by: redmer <[email protected]> Co-authored-by: RiX012 <[email protected]>
- Loading branch information
1 parent
695e85b
commit 51d5926
Showing
24 changed files
with
4,348 additions
and
3,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Generate Verslagen Index | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'docs/verslagen/**' | ||
|
||
jobs: | ||
generate_index: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate Index | ||
run: | | ||
cd docs/verslagen | ||
echo "# Verslagen" > index.md | ||
echo "" >> index.md | ||
for dir in */; do | ||
dir=${dir%/} | ||
if [ -d "$dir" ]; then | ||
echo "## $dir" >> 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: | ||
commit_message: Update verslagen-index na upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.