mirror of
https://github.com/gorules/zen.git
synced 2026-10-04 16:02:18 +00:00
chore: improve release pipeline (#451)
* chore: improve release pipeline * fix pipelines * fix sccache * update workflows * fix workflow * update workflow * remove sccache and cross * bring back sccache * fix pipelines * fix nodejs build * fix pipelines * move python to abi3 for future proofing * fix workflow ordering bug * gate releases via environment - configure go via release * set release as 1.0.0-beta
This commit is contained in:
@@ -35,8 +35,8 @@ impl<'py> FromPyObject<'py> for PyZenDecisionContentJson {
|
||||
}
|
||||
|
||||
if let Ok(b) = ob.downcast::<PyString>() {
|
||||
let str = b.to_str()?;
|
||||
let content = serde_json::from_str(str).context("Invalid JSON")?;
|
||||
let str = b.to_cow()?;
|
||||
let content = serde_json::from_str(&str).context("Invalid JSON")?;
|
||||
|
||||
return Ok(Self(PyZenDecisionContent(Arc::new(content))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user