treefmt v2.5.0traversed 351 files emitted 285 files for processing formatted 285 files (1 changed) in 6.08s M docs/EFFECTS.md diff --git a/docs/EFFECTS.md b/docs/EFFECTS.md index 377ce45..e5cd9df 100644 --- a/docs/EFFECTS.md +++ b/docs/EFFECTS.md @@ -102,8 +102,8 @@ default.push-image ## Running only on changed inputs (`when.changed`) -`when.changed` names the inputs an effect depends on. The effect is not run again -while they are the same as in its last successful run: +`when.changed` names the inputs an effect depends on. The effect is not run +again while they are the same as in its last successful run: ```nix hil = mkEffect { @@ -114,10 +114,10 @@ hil = mkEffect { ``` Values must be strings, typically store paths: up to 32 inputs of at most 1024 -bytes each. When the effect's turn comes (after -its `lock`) and the last successful run of this effect in the repository had the -same inputs, it is marked succeeded as "unchanged since build #N" without -running. Effects `after` it run as usual. +bytes each. When the effect's turn comes (after its `lock`) and the last +successful run of this effect in the repository had the same inputs, it is +marked succeeded as "unchanged since build #N" without running. Effects `after` +it run as usual. Failed runs and runs for pull requests do not count. A restart always runs the effect. Only `onPush` effects support `when.changed`, and no other `when` key.