diff --git a/main.py b/main.py index f07735d..d2d4359 100644 --- a/main.py +++ b/main.py @@ -542,7 +542,7 @@ async def main( comma_separated_list = ','.join(l) with open(os.environ['GITHUB_OUTPUT'], 'a') as f: - f.write(f'{name}={comma_separated_list}') + f.write(f'{name}={comma_separated_list}\n') if __name__ == '__main__': diff --git a/main_tests.py b/main_tests.py index ac7c0f0..da364df 100644 --- a/main_tests.py +++ b/main_tests.py @@ -590,7 +590,7 @@ async def test_outputs_are_set(mocker): } ) with open(os.environ['GITHUB_OUTPUT']) as f: - out_vars = f.readlines()[0] + out_vars = f.read() for i in [ 'needs-github-assistance=',