File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,9 @@ serve(; host="0.0.0.0", port=PORT)
3030
3131@info " Exiting the server"
3232ENV [" RESULTS" ] = results_json ()
33+ if haskey (ENV , " JULIAHUB_RESULTS_SUMMARY_FILE" )
34+ open (ENV [" JULIAHUB_RESULTS_SUMMARY_FILE" ], " w" ) do io
35+ write (io, ENV [" RESULTS" ])
36+ end
37+ end
3338println (ENV [" RESULTS" ])
Original file line number Diff line number Diff line change @@ -34,3 +34,8 @@ results = Dict(
3434
3535@info " Storing RESULTS:\n $(results) "
3636ENV [" RESULTS" ] = JSON. json (results)
37+ if haskey (ENV , " JULIAHUB_RESULTS_SUMMARY_FILE" )
38+ open (ENV [" JULIAHUB_RESULTS_SUMMARY_FILE" ], " w" ) do io
39+ write (io, ENV [" RESULTS" ])
40+ end
41+ end
Original file line number Diff line number Diff line change @@ -16,4 +16,9 @@ ENV["RESULTS"] = """
1616 "hello": "$(hello) "
1717}
1818"""
19+ if haskey (ENV , " JULIAHUB_RESULTS_SUMMARY_FILE" )
20+ open (ENV [" JULIAHUB_RESULTS_SUMMARY_FILE" ], " w" ) do io
21+ write (io, ENV [" RESULTS" ])
22+ end
23+ end
1924@info ENV [" RESULTS" ]
You can’t perform that action at this time.
0 commit comments