Skip to content

Commit b063c57

Browse files
authored
fix: append to GITHUB_OUTPUT
1 parent c279f0f commit b063c57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • gha-helper/gha_helper

gha-helper/gha_helper/gh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def get_json(self, name: str, default=Unset):
5858

5959
class Output:
6060
def save(self, name: str, value: Any):
61-
with open(os.environ["GITHUB_OUTPUT"], "w+") as f:
61+
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
6262
f.write(f"{name}={value}\n")
6363

6464
def save_json(self, name: str, value: Any):
6565
data = json.dumps(value, separators=(",", ":"))
66-
with open(os.environ["GITHUB_OUTPUT"], "w+") as f:
66+
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
6767
f.write(f"{name}={data}\n")
6868

6969

0 commit comments

Comments
 (0)