@@ -26,6 +26,7 @@ def run_and_capture(command):
26
26
result = sp .run (command , text = True , check = True , stdout = sp .PIPE )
27
27
return result .stdout .strip ()
28
28
29
+
29
30
def append_to_github_output (key , value ):
30
31
"""Append a key-value pair to the file specified by $GITHUB_OUTPUT."""
31
32
pair = f"{ key } ={ json .dumps (value )} "
@@ -37,12 +38,14 @@ def append_to_github_output(key, value):
37
38
print (f"GITHUB_OUTPUT not set" )
38
39
print (pair )
39
40
41
+
40
42
def get_manifest_dict ():
41
43
with open ("Manifest.toml" , "rb" ) as f :
42
44
manifest_data = tomllib .load (f )
43
45
package_versions = {k : v [0 ].get ("version" , None ) for k , v in manifest_data ["deps" ].items ()}
44
46
return package_versions
45
47
48
+
46
49
def setup (_args ):
47
50
# Model keys
48
51
models = run_and_capture ([* JULIA_COMMAND , "--list-model-keys" ]).splitlines ()
@@ -130,7 +133,11 @@ def html(_args):
130
133
exit (1 )
131
134
132
135
try :
133
- manifest = json .loads (os .environ ["MANIFEST" ])
136
+ manifest = os .environ ["MANIFEST" ]
137
+ print ("-------- $MANIFEST --------" )
138
+ print (manifest )
139
+ print ("------------- END -------------" )
140
+ manifest = json .loads (manifest )
134
141
except KeyError as e :
135
142
print ("MANIFEST environment variable not set, reading from Manifest.toml" )
136
143
manifest = get_manifest_dict ()
0 commit comments