diff --git a/.github/workflows/workspace.yml b/.github/workflows/workspace.yml index e1891613b..11b1d9def 100644 --- a/.github/workflows/workspace.yml +++ b/.github/workflows/workspace.yml @@ -88,7 +88,8 @@ jobs: run: | echo "audit=$(bash scripts/ci-workspace-tests.sh audit)" >> "$GITHUB_OUTPUT" echo "profile=$(cat .config/cargo-dev.toml .config/cargo-ci.toml | sha256sum | cut -c1-12)" >> "$GITHUB_OUTPUT" - echo "deps-profile=$(python3 -I - <<'PY' + # An assignment, so a failure stops the step (`bash -e`) instead of naming every entry `v2-`. + deps=$(python3 -I - <<'PY' import hashlib, json, tomllib kept = [] for path in (".config/cargo-dev.toml", ".config/cargo-ci.toml"): @@ -97,7 +98,8 @@ jobs: kept.append([dev, dev.pop("package", {}).get("*", {})]) print(hashlib.sha256(json.dumps(kept, sort_keys=True).encode()).hexdigest()[:12]) PY - )" >> "$GITHUB_OUTPUT" + ) + echo "deps-profile=$deps" >> "$GITHUB_OUTPUT" # The Linux leg keeps the compiled workspace crates between runs (`cache-workspace-crates`): each # main run saves a rolling cache entry of its own, every run restores the newest one, and Cargo