fix(ci): make index sorting deterministic (sort by name + id)
This commit is contained in:
@@ -80,7 +80,7 @@ def generate_index(skills_dir, output_file):
|
|||||||
skills.append(skill_info)
|
skills.append(skill_info)
|
||||||
|
|
||||||
# Sort validation: by name
|
# Sort validation: by name
|
||||||
skills.sort(key=lambda x: x["name"].lower())
|
skills.sort(key=lambda x: (x["name"].lower(), x["id"].lower()))
|
||||||
|
|
||||||
with open(output_file, 'w', encoding='utf-8') as f:
|
with open(output_file, 'w', encoding='utf-8') as f:
|
||||||
json.dump(skills, f, indent=2)
|
json.dump(skills, f, indent=2)
|
||||||
|
|||||||
@@ -342,8 +342,8 @@
|
|||||||
"source": "unknown"
|
"source": "unknown"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "brand-guidelines-community",
|
"id": "brand-guidelines-anthropic",
|
||||||
"path": "skills/brand-guidelines-community",
|
"path": "skills/brand-guidelines-anthropic",
|
||||||
"category": "uncategorized",
|
"category": "uncategorized",
|
||||||
"name": "brand-guidelines",
|
"name": "brand-guidelines",
|
||||||
"description": "Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.",
|
"description": "Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.",
|
||||||
@@ -351,8 +351,8 @@
|
|||||||
"source": "unknown"
|
"source": "unknown"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "brand-guidelines-anthropic",
|
"id": "brand-guidelines-community",
|
||||||
"path": "skills/brand-guidelines-anthropic",
|
"path": "skills/brand-guidelines-community",
|
||||||
"category": "uncategorized",
|
"category": "uncategorized",
|
||||||
"name": "brand-guidelines",
|
"name": "brand-guidelines",
|
||||||
"description": "Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.",
|
"description": "Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.",
|
||||||
|
|||||||
Reference in New Issue
Block a user