Repository navigation
Only run depends_post when task is successful #15729
EricDriussi
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
What version are you on? The skip-on-failed-dependency fix landed in #8426 (March 2026). Before it, If you also need ["pub:ci"]
depends = ["install", "lint", "test"]
run = [
{ task = "build", args = ["--prod"] },
{ task = "upload" },
]AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: 2.1.325. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I might be using mise "wrong", but I often find I need to run a post task only if the current task (or its dependencies) finishes successfully.
For example:
This triggers the upload task even if the build or test task fails. I could in theory add the "upload" task as a dep, but then again I'm not aware of a way to selectively tell mise to not run specific tasks/deps in parallel, so that wouldn't really do much.
Another example:
I understand the point of "depends_post" is to actually be a cleanup job, and it makes sense to have that functionality.
I just feel there's a missing knob to tell mise "run this post task IFF nothing fails before reaching it".
That being said, if I'm missing something here please let me know!
All reactions