Skip to content

Commit

Permalink
Test new output
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Sep 11, 2024
1 parent f8e2844 commit 17cfe58
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions update-since-todo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import argparse
import fileinput
import io
import os
import shutil
import subprocess

Expand Down Expand Up @@ -100,6 +101,10 @@ def analyze_files(commits_and_tags, dry_run=False):
"*.jelly",
"*.js",
]

runningInCI = os.environ.get("CI", "false") == "true"
if runningInCI:
print("<details><summary>Detailed output</summary>\n\n")
with subprocess.Popen(cmd, stdout=subprocess.PIPE) as proc:
for line in io.TextIOWrapper(proc.stdout):
parts = line.rstrip().split(":", 2)
Expand All @@ -108,6 +113,8 @@ def analyze_files(commits_and_tags, dry_run=False):
if retcode:
raise subprocess.CalledProcessError(retcode, cmd)
print()
if runningInCI:
print("\n</details>")


def display_results(commits_and_tags):
Expand Down

0 comments on commit 17cfe58

Please sign in to comment.