Skip to content

Commit 1c74b6d

Browse files
author
Jeevan Revaneppa Hirethanad
committed
ensure generate_matrix.py outputs valid JSON for fromJSON() and fix YAML upload indentation
1 parent d81dc29 commit 1c74b6d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/scripts/generate_matrix.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ def main():
3535
rows = [{"app":"noop","board":"noop"}]
3636

3737
matrix = {"include": rows}
38-
# Emit as a job output
39-
with open(os.environ["GITHUB_OUTPUT"], "a") as fh:
40-
fh.write(f"matrix={json.dumps(matrix)}\n")
41-
38+
print(json.dumps(matrix, indent=2))
39+
4240
print(f"Generated {len(rows)} matrix rows from {TEMPLATES_XML}")
4341

4442
if __name__ == "__main__":

0 commit comments

Comments
 (0)