Skip to content
skillbld
CI/CD with GitHub Actions · 12-day planAll days
Day 7 of 12 30 min

Make workflows decide for themselves. Read the github, env, vars, inputs and runner contexts, write ${{ }} expressions with operators and functions, run jobs and steps only when conditions hold, react to failures with status functions, and set environment variables at every level.

By the end of today you can

  • Read values from the github, env, vars, runner and steps contexts
  • Write expressions with comparisons, logic and functions
  • Run jobs and steps conditionally with if
  • Use success, failure and always to handle failures
  • Set environment variables at workflow, job and step level, and with GITHUB_ENV

What's inside

  • 4 sections
  • 2 diagrams and mind maps
  • 4 code examples you can run
  • 5-question quiz
  1. 1Contexts
  2. 2Operators and functions
  3. 3Conditions with if:
  4. 4Environment variables

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 7: Expressions & Conditions · CI/CD with GitHub Actions · SkillBld