mirror of
https://github.com/mtkennerly/dunamai-action.git
synced 2025-06-20 06:08:03 +00:00
#2: Fix argument to write() vs writelines()
This commit is contained in:
parent
004550a190
commit
874636536a
1 changed files with 2 additions and 2 deletions
|
@ -11,13 +11,13 @@ def run_command(command: str) -> str:
|
|||
|
||||
def set_output(name: str, value: str) -> None:
|
||||
with open(os.environ["GITHUB_OUTPUT"], "a") as file:
|
||||
file.write(["{}={}\n".format(name, value)])
|
||||
file.write("{}={}\n".format(name, value))
|
||||
|
||||
|
||||
def export_variable(name: str, value: str) -> None:
|
||||
print("Setting environment variable: {}".format(name))
|
||||
with open(os.environ["GITHUB_ENV"], "a") as file:
|
||||
file.write(["{}={}\n".format(name, value)])
|
||||
file.write("{}={}\n".format(name, value))
|
||||
|
||||
|
||||
def set_failed(error: Exception) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue