Skip to content

Commit 496458d

Browse files
committed
test
1 parent 50f7090 commit 496458d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: tj-actions/changed-files@v45
3030
with:
3131
since_last_remote_commit: true
32-
separator: "\n"
32+
separator: "\\n"
3333
files: |
3434
**/*
3535
@@ -45,26 +45,31 @@ jobs:
4545
import json
4646
import os
4747
from pathlib import Path
48+
from typing import Any, Generator
4849
4950
50-
def discover() -> list[str]:
51+
def discover() -> Generator[str, Any, None]:
5152
for changed in "${{ steps.changed-files.outputs.all_changed_files }}".split("\n"):
53+
print(changed)
5254
path = Path(changed)
5355
if Path(path.parts[0]).is_dir():
5456
yield path.parts[0]
5557
5658
57-
def jsonify(item_lists: list[str]) -> str:
59+
def jsonify(item_lists: dict[str,list[str]]) -> str:
5860
return json.dumps(item_lists, separators=(",", ":"))
5961
6062
61-
def main():
63+
def main() -> None:
6264
item_lists = list(set(discover()))
6365
length = len(item_lists)
6466
json_modules = jsonify({"service": item_lists})
6567
6668
github_output = f"matrix={json_modules}\n"
6769
70+
print(github_output)
71+
print(length)
72+
6873
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
6974
f.write(github_output)
7075
f.write(f"length={length}\n")

0 commit comments

Comments
 (0)