In GitHub Actions, does anyone know how to conditionally stop a job early without causing the job to fail? e.g., "For x, y, z in the matrix, only do foo for x, but do foo, bar and baz for x, y and z."
Yeah, I can do that. But when it's a lot of steps, it gets pretty annoying. In pseudo code, I want: for build in [x, y, z]: step1() step2() step3() if build == x: continue step4() step5() step6()
-
-
For rustc's new config I added `if: success() && !env.SKIP_JOB` to every step, and when I wanted to quit early I printed `::set-env name=SKIP_JOB::1` to stdout and exited the step. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions#logging-commands …
-
Bummer. Thanks. If it ever gets really complicated, then I'll resort to this.
@ethomson Might be a nice feature to add!
Kraj razgovora
Novi razgovor -
-
-
I know
@pietroalbini was working on something fancy using YAML anchors and a rust program to expand them, for the rust-lang/rust CI. Perhaps he has ideas?Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.