Update .gitea/workflows/ci.yml
All checks were successful
CI/CD Pipeline / Full CI/CD Pipeline (push) Successful in 11s

This commit is contained in:
Arlind
2025-06-16 21:12:36 +02:00
parent 57a97d1d51
commit c39d4b8cac

View File

@@ -730,9 +730,6 @@ jobs:
- name: Generate Per-Skin Pages
shell: bash
run: |
set -euo pipefail
set -x # Print each command before executing it
echo "Generating detailed per-skin markdown pages…"
sanitize_filename() {
@@ -753,35 +750,26 @@ jobs:
echo "$encoded"
}
echo "Checking DOC_DIR: $DOC_DIR"
mkdir -p "$DOC_DIR"
echo "Processing skins in directory: $DANSER_SKINS_DIR"
for dir in "$DANSER_SKINS_DIR"/*; do
echo "Examining $dir"
[ -d "$dir" ] || { echo "Skipping non-directory $dir"; continue; }
[ -d "$dir" ] || continue
skin=$(basename "$dir")
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true)
skin_header="$skin"
echo "Found skin: $skin"
if [ -f "$ini_file" ]; then
echo "Found ini file: $ini_file"
line=$(grep -i '^[[:space:]]*Name:' "$ini_file" | head -n1 || true)
if [ -n "$line" ]; then
skin_header=$(sanitize_filename "${line#*:}")
fi
[ -n "$line" ] && skin_header=$(sanitize_filename "${line#*:}")
fi
echo "Skin header: $skin_header"
raw_path="${skin}/${skin_header}"
base_path=$(url_encode_path "$raw_path")
osk_url="$REGISTRY_URL/$USER_REPOSITORY/media/tag/$new_tag/export/${base_path}.osk"
md_file_path="${DOC_DIR}/${raw_path}.md"
mkdir -p "$(dirname "$md_file_path")" || { echo "Failed to create directory for $md_file_path"; exit 1; }
mkdir -p "$(dirname "$md_file_path")"
video_url="$REGISTRY_URL/$USER_REPOSITORY/raw/tag/$new_tag/media/gameplay/${base_path}.mp4"