Skip to content

Commit

Permalink
write to GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
mucsi96 committed Mar 11, 2024
1 parent c2c70c7 commit 315a7ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ def create_pages_artifact(
run(["chmod", "-c", "-R", "+rX", directory])
run(["tar", "--dereference", "--hard-dereference",
"--directory", directory, "-cvf", tar_file, "."])
run(["echo", f"artifact={tar_file}", ">>", environ.get("GITHUB_OUTPUT")])
with open(environ.get("GITHUB_OUTPUT"), 'a') as output:
output.write(f"artifact={tar_file}")

0 comments on commit 315a7ea

Please sign in to comment.