From c39d4b8cacc6c46d3b68d5e89e21644e67ca9626 Mon Sep 17 00:00:00 2001 From: Arlind Date: Mon, 16 Jun 2025 21:12:36 +0200 Subject: [PATCH] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6d4d532f..34259d0a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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"