ci: rename update-scriptsci

This changes how we think about this directory; it does not need to be
exclusively for scripts related to updates, but should be a place for
any scripts intended to be run by CI workflows.

This mindset should make it easier to develop and test the business
logic of workflows, without always needing to test "in production" on
the nixvim repo or a fork.
This commit is contained in:
Matt Sturgeon 2025-06-11 22:13:00 +01:00
parent 7388c85c54
commit dc79549a88
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
18 changed files with 13 additions and 12 deletions

23
ci/nvim-lspconfig/clean-desc.py Executable file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env python3
import json
import os
import subprocess
import sys
filter = os.environ.get("LUA_FILTER")
if filter is None:
filter = os.path.dirname(__file__) + "/desc-filter.lua"
with open(sys.argv[1]) as f:
data = json.load(f)
for d in data:
if "desc" in d:
if "#" in d["desc"]:
d["desc"] = subprocess.run(
["pandoc", "-t", "markdown", f"--lua-filter={filter}"],
input=d["desc"],
capture_output=True,
text=True,
).stdout
print(json.dumps(data, sort_keys=True))