diff --git a/.gitea/actions/discover-skins/action.yml b/.gitea/actions/discover-skins/action.yml index 16658cf..6efe09f 100644 --- a/.gitea/actions/discover-skins/action.yml +++ b/.gitea/actions/discover-skins/action.yml @@ -26,6 +26,7 @@ runs: id: discover_all shell: bash run: | + echo "→ Running in shell: $SHELL (bash version: $BASH_VERSION)" echo "Discovering all skins in $SKINS_DIR…" mapfile -t skins < <( find "$SKINS_DIR" -mindepth 1 -maxdepth 1 -type d \ @@ -44,12 +45,14 @@ runs: id: detect shell: bash run: | + echo "→ Running in shell: $SHELL (bash version: $BASH_VERSION)" echo "[Detect Changed Skin Directories Started]" # Parse JSON back into Bash array - echo '${{ steps.discover_all.outputs.all_skins }}' | jq -r '.[]' | while IFS= read -r skin; do + all_skins=() + while IFS= read -r skin; do all_skins+=("$skin") - done + done < <(echo '${{ steps.discover_all.outputs.all_skins }}' | jq -r '.[]') force_rebuild="${{ inputs.force_rebuild }}" target_skins="${{ inputs.target_skins }}"