generated from osc/skins-template
add debug for skins.json
Some checks failed
CI/CD Pipeline / Full CI/CD Pipeline (push) Failing after 10s
Some checks failed
CI/CD Pipeline / Full CI/CD Pipeline (push) Failing after 10s
This commit is contained in:
@@ -621,13 +621,14 @@ jobs:
|
||||
- name: Generate README
|
||||
shell: bash
|
||||
run: |
|
||||
set -x
|
||||
|
||||
echo "Generating README index…"
|
||||
|
||||
sanitize_filename() {
|
||||
echo "$1" | \
|
||||
tr -d '\000-\037' | \
|
||||
sed -e 's#[\\/:\*\?"<>|]#-#g' | \
|
||||
sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
|
||||
sed -e 's#[\\/:\*\?"<>|]#-#g' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
|
||||
}
|
||||
|
||||
url_encode_path() {
|
||||
@@ -643,6 +644,7 @@ jobs:
|
||||
|
||||
SKINS_JSON_FILE="${{ github.workspace }}/.gitea/workflows/skins.json"
|
||||
DESC_FILE=$(mktemp)
|
||||
|
||||
echo "---" > "$README_PATH"
|
||||
echo "gitea: none" >> "$README_PATH"
|
||||
echo "include_toc: true" >> "$README_PATH"
|
||||
@@ -668,9 +670,10 @@ jobs:
|
||||
|
||||
declare -A ordered
|
||||
while IFS= read -r skin; do
|
||||
echo "Processing ordered skin: $skin"
|
||||
ordered["$skin"]=1
|
||||
dir="$DANSER_SKINS_DIR/$skin"
|
||||
[ ! -d "$dir" ] && continue
|
||||
[ ! -d "$dir" ] && echo "Directory not found: $dir" && continue
|
||||
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1)
|
||||
skin_header="$skin"
|
||||
if [ -f "$ini_file" ]; then
|
||||
@@ -701,8 +704,9 @@ jobs:
|
||||
|
||||
for dir in "$DANSER_SKINS_DIR"/*; do
|
||||
[ -d "$dir" ] || continue
|
||||
skin=$(basename "$dir")
|
||||
skin="$(basename "$dir")"
|
||||
[[ -n "${ordered[$skin]}" ]] && continue
|
||||
echo "Processing extra skin: $skin"
|
||||
|
||||
ini_file=$(find "$dir" -maxdepth 1 -iname "skin.ini" | head -n1 || true)
|
||||
skin_header="$skin"
|
||||
|
||||
@@ -1,10 +1,42 @@
|
||||
{
|
||||
"order": [
|
||||
"example1",
|
||||
"example2"
|
||||
],
|
||||
"descriptions": {
|
||||
"example1": "Description of example1",
|
||||
"example2": "Description of example2"
|
||||
}
|
||||
"order": [
|
||||
"- ⊹ aia 1",
|
||||
"- ⊹ aia 2",
|
||||
"- ⊹ aia 3",
|
||||
"boop ts",
|
||||
"- rafis pinkity edit by henry",
|
||||
"_• adidas for3v3r",
|
||||
"hddthr_aristia",
|
||||
"++scylla funny mix EPIC",
|
||||
"Aristia rgby",
|
||||
"- + morgan spring",
|
||||
"- Seoul v11 Asta Edit",
|
||||
"-#-B- RizerAristia V2+ - [NM+Abyssal]",
|
||||
"awawawawadesu",
|
||||
"bleh",
|
||||
"fukari alt",
|
||||
"how the sky was",
|
||||
"pew2022 LITE",
|
||||
"prezes",
|
||||
"sora (copy)",
|
||||
"--",
|
||||
"_• rafisedit",
|
||||
"Aleph DT",
|
||||
"aлё",
|
||||
"BOIIII_idk MIX Skin",
|
||||
"mario+bro+⌞DT⌝",
|
||||
"Rafis but SZ",
|
||||
"心kokoro dt",
|
||||
"- ⊹ aia 3 blue hitcircleoverlay",
|
||||
"- ⊹ aia 3 red hitcircleoverlay"
|
||||
],
|
||||
"descriptions": {
|
||||
"- ⊹ aia 3 blue hitcircleoverlay": "Experimental Skin",
|
||||
"- ⊹ aia 3 red hitcircleoverlay": "Experimental Skin",
|
||||
"- ⊹ aia 1": "Main",
|
||||
"- ⊹ aia 2": "Main, diff hitcircles",
|
||||
"- ⊹ aia 3": "Main, diff hitcircles",
|
||||
"boop ts": "Triple Stacked Rafis",
|
||||
"- rafis pinkity edit by henry": "Main Rafis Edit"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user