From dfe1c9f37b303e740feec182df337c208997e2a8 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Wed, 19 Oct 2022 19:02:33 +0200 Subject: [PATCH] Fix handling of `GITHUB_OUTPUT` (#451) --- jupyter_releaser/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_releaser/util.py b/jupyter_releaser/util.py index fb906b47..cf06e613 100644 --- a/jupyter_releaser/util.py +++ b/jupyter_releaser/util.py @@ -398,7 +398,7 @@ def actions_output(name, value): """Handle setting an action output on GitHub""" log(f"\n\nSetting output {name}={value}") if "GITHUB_OUTPUT" in os.environ: - with open("GITHUB_OUTPUT", "a") as fid: + with open(os.environ["GITHUB_OUTPUT"], "a") as fid: fid.write(f"{name}={value}\n")