StaffCoder
GitHub Actions
8 modules · 24 challengesSign up
Module 4 of 8 · 3 challenges

GitHub Actions Job Orchestration & Conditions

Build a job graph: fan out and fan back in, pass outputs between jobs, and route failure with status functions and conditions.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

3 challenges

Fan-Out, Fan-In And Job Outputs

Sign up to unlock
—No data yetmedium
About this challenge

Split a single long job into a fan-out/fan-in graph: a build job that works out the version once and publishes it as a job output, three check jobs fanning out from it, a packaging job fanning them back in and reading the version through needs, and a job outside the chain that cannot see the producer's output. One nominated check fails per grade, so the failing sibling cannot be predicted.

Solved in a browser IDE and graded by tests. Sign up to solve

Failure Paths And Status Functions

Sign up to unlock
—No data yetmedium
About this challenge

Add the failure paths to a pipeline: a notification gated with failure() that names which check failed by reading needs.<job>.result, a job gated on one specific needs result, an always-run cleanup, and an optional job whose probe step is allowed to fail without ending the job. Which check fails is nominated per grade, so the notification cannot hardcode a name.

Solved in a browser IDE and graded by tests. Sign up to solve

The Gated Release Train

STAR
Solving it completes the module
—No data yetmedium
About this challenge

Assemble a release train from ten jobs: a build job publishing the version, three checks fanning out and publishing attestations, a release gated on success() that binds the version and all three attestations into a release token, a non-blocking optional job whose probe step may fail, a notification gated with failure() that names the failed check from needs results, a job gated on one specific needs result, an always-run cleanup, and a job outside the chain that cannot see the producer's output.

Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.