We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5197747 commit c608442Copy full SHA for c608442
oidc-exchange.py
@@ -8,11 +8,12 @@
8
import id
9
import requests
10
11
-_GITHUB_STEP_SUMMARY = Path(os.getenv("GITHUB_STEP_SUMMARY")).open("a")
+_GITHUB_STEP_SUMMARY = Path(os.getenv("GITHUB_STEP_SUMMARY"))
12
13
14
def die(msg: str) -> NoReturn:
15
- print(msg, file=_GITHUB_STEP_SUMMARY)
+ with _GITHUB_STEP_SUMMARY.open("a") as io:
16
+ print(msg, file=io)
17
18
# NOTE: `msg` is Markdown formatted, so we emit only the header line to
19
# avoid clogging the console log with a full Markdown formatted document.
0 commit comments