Skip to content

Commit bf95f95

Browse files
committed
Fix Manifest not being passed to later workflow job
1 parent 2b91768 commit bf95f95

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/generate_website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
collect-results:
8888
runs-on: ubuntu-latest
8989
if: github.event_name != 'pull_request'
90-
needs: run-models
90+
needs: [setup-keys, run-models]
9191

9292
steps:
9393
- uses: actions/checkout@v4

ad.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def run_and_capture(command):
2626
result = sp.run(command, text=True, check=True, stdout=sp.PIPE)
2727
return result.stdout.strip()
2828

29+
2930
def append_to_github_output(key, value):
3031
"""Append a key-value pair to the file specified by $GITHUB_OUTPUT."""
3132
pair = f"{key}={json.dumps(value)}"
@@ -37,12 +38,14 @@ def append_to_github_output(key, value):
3738
print(f"GITHUB_OUTPUT not set")
3839
print(pair)
3940

41+
4042
def get_manifest_dict():
4143
with open("Manifest.toml", "rb") as f:
4244
manifest_data = tomllib.load(f)
4345
package_versions = {k: v[0].get("version", None) for k, v in manifest_data["deps"].items()}
4446
return package_versions
4547

48+
4649
def setup(_args):
4750
# Model keys
4851
models = run_and_capture([*JULIA_COMMAND, "--list-model-keys"]).splitlines()
@@ -130,7 +133,11 @@ def html(_args):
130133
exit(1)
131134

132135
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)
134141
except KeyError as e:
135142
print("MANIFEST environment variable not set, reading from Manifest.toml")
136143
manifest = get_manifest_dict()

0 commit comments

Comments
 (0)