We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GITHUB_OUTPUT
1 parent 676ec5d commit df45be1Copy full SHA for df45be1
entrypoint.py
@@ -52,9 +52,10 @@ def main() -> None:
52
print(feedback)
53
54
# Write the feedback to the environment file
55
- with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as f:
56
- out_string = f'feedback<<EOF\n{feedback}\nEOF'
57
- logging.info(f"Writing to GITHUB_OUTPUT: {f.write(out_string)} characters")
+ if os.getenv('GITHUB_OUTPUT', False):
+ with open(os.environ['GITHUB_OUTPUT'], 'a', encoding='utf-8') as f:
+ out_string = f'feedback<<EOF\n{feedback}\nEOF'
58
+ logging.info(f"Writing to GITHUB_OUTPUT: {f.write(out_string)} characters")
59
60
if not b_fail_expected:
61
assert n_failed == 0, f'{n_failed} failed tests'
0 commit comments