Interview Prep/CI/CD/GitHub Actions

You must run a workflow only if the commit message does not contain `[skip ci]`.

BeginnerScenarioGitHub Actions
Answer

Situation read → Skip behaviour.

What I'd do →

  1. GitHub natively skips push/pull_request runs when the head commit message has [skip ci], [ci skip], [no ci], [skip actions] or [actions skip].
  2. For finer control add if: "!contains(github.event.head_commit.message, '[skip release]')".

Why → The native keywords skip workflows without extra code.

Interview tip → Skipped required checks can block merges; use sparingly on protected branches.

All CI/CD questions

More on GitHub Actions