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"
|
||||
|
||||
Reference in New Issue
Block a user