@ondeinference / ed Mirror · read-only / commits / b0291f7
Fork 0

Read-only mirror of github.com/ondeinference/ed.

Mirrored from https://github.com/ondeinference/ed.git

Synced Nov 23, 01:00 UTC

Run the crate-publish verification even when publish fails

A custom `if` with no status function implies success(), so the verification step was skipped exactly when publish exited nonzero partway through, which is the partial-publish case it exists to catch. Guard with always() so it runs after a failed publish, and gate on the plan step succeeding, since a failed plan leaves count empty and that reads as != '0'. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Co-Authored-By: siGit Code v1.7.10 <noreply@sigit.si> Co-Authored-By: OndeCode v1.1.2 <noreply@ondeinference.com>

Seto Elkahfi committed Nov 20, 2026 at 08:07 UTC b0291f7b08c4072d8c4ece51e5a825d3ed3bb91f
1 file changed +7 -1
.github/workflows/release-sdk-rust.yml
+7 -1
@@ -128,8 +128,14 @@ jobs:
128 # ask the registry about every crate in the plan and fail if any is absent.
129 # After a failure, re-run through workflow_dispatch: the plan then holds
130 # only the missing crates and the auth step issues a fresh token.
131 + #
132 + # always() so this still runs when publish exits nonzero partway through
133 + # (the --locked failure, or a mid-run token expiry), which is the
134 + # partial-publish case this check exists to catch. A custom `if`
135 + # otherwise implies success() and skips the step there. Gate on plan
136 + # succeeding too: a failed plan leaves count empty, which is != '0'.
137 - name: Verify every planned crate reached crates.io
132 - if: steps.plan.outputs.count != '0'
138 + if: always() && steps.plan.outcome == 'success' && steps.plan.outputs.count != '0'
139 run: |
140 python3 - <<'PY' > planned.txt
141 import json