Skip to content

Commit ec14f6a

Browse files
committed
Fix action.yml
1 parent 07ab396 commit ec14f6a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

action.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,7 @@ runs:
4646
4747
# Try to decode JSON arrays first (allows workflows to pass lists directly)
4848
if command -v python3 >/dev/null 2>&1; then
49-
JSON_NORMALIZED=$(python3 -c "import json, os
50-
raw = os.environ.get('INPUT_BROWSERS_RAW', '')
51-
try:
52-
data = json.loads(raw)
53-
except Exception:
54-
data = None
55-
56-
if isinstance(data, (list, tuple)):
57-
tokens = [str(item) for item in data if str(item).strip()]
58-
print(' '.join(tokens))" 2>/dev/null || true)
49+
JSON_NORMALIZED=$(python3 -c $'import json, os\nraw = os.environ.get("INPUT_BROWSERS_RAW", "")\ntry:\n data = json.loads(raw)\nexcept Exception:\n data = None\nif isinstance(data, (list, tuple)):\n tokens = [str(item) for item in data if str(item).strip()]\n print(" ".join(tokens))' 2>/dev/null || true)
5950
if [ -n "$JSON_NORMALIZED" ]; then
6051
RAW="$JSON_NORMALIZED"
6152
fi

0 commit comments

Comments
 (0)