generated from osc/skins-template
Update CI from skins-template
Some checks failed
CI/CD Pipeline / Full CI/CD Pipeline (push) Failing after 8s
Some checks failed
CI/CD Pipeline / Full CI/CD Pipeline (push) Failing after 8s
This commit is contained in:
@@ -659,7 +659,9 @@ jobs:
|
||||
grep -F -m1 -- "$1=" "$DESC_FILE" 2>/dev/null | cut -d '=' -f2-
|
||||
}
|
||||
|
||||
declare -A ordered
|
||||
while IFS= read -r skin; do
|
||||
ordered["$skin"]=1
|
||||
dir="$DANSER_SKINS_DIR/$skin"
|
||||
[ ! -d "$dir" ] && continue
|
||||
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1)
|
||||
@@ -682,6 +684,30 @@ jobs:
|
||||
echo "" >> "$README_PATH"
|
||||
done < order.txt
|
||||
|
||||
echo "Adding extra skins not in order.json..."
|
||||
|
||||
for dir in "$DANSER_SKINS_DIR"/*; do
|
||||
[ -d "$dir" ] || continue
|
||||
skin=$(basename "$dir")
|
||||
[[ -n "${ordered[$skin]}" ]] && continue
|
||||
|
||||
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1)
|
||||
skin_header="$skin"
|
||||
if [ -f "$ini_file" ]; then
|
||||
line=$(grep -i '^[[:space:]]*Name:' "$ini_file" | head -n1 2>/dev/null || true)
|
||||
[ -n "$line" ] && skin_header=$(sanitize_filename "${line#*:}")
|
||||
fi
|
||||
|
||||
raw_path="$(printf "%s/%s" "$skin" "$skin_header" | sed 's/^ *//;s/ *$//')"
|
||||
base_path=$(url_encode_path "$raw_path")
|
||||
|
||||
echo "## [$skin_header]($REGISTRY_URL/$USER_REPOSITORY/media/tag/$new_tag/export/${base_path}.osk)" >> "$README_PATH"
|
||||
echo "" >> "$README_PATH"
|
||||
|
||||
echo "[](/docs/${base_path}.md)" >> "$README_PATH"
|
||||
echo "" >> "$README_PATH"
|
||||
done
|
||||
|
||||
echo "# Build History" >> "$README_PATH"
|
||||
echo "" >> "$README_PATH"
|
||||
echo "| Version | Date |" >> "$README_PATH"
|
||||
|
||||
Reference in New Issue
Block a user