Skip to content

@tank/github-actions-cheatsheet

1.0.0

Description

GitHub Actions cheat sheet covering workflow syntax, triggers, jobs, matrices, expressions, contexts, env/secrets, reusable workflows, and common CI/CD snippets..

Download
Verified
tank install @tank/github-actions-cheatsheet

GitHub Actions Cheat Sheet

Core Philosophy

  1. Optimize for syntax recall — Cheat sheets are for quickly reconstructing working YAML under pressure.
  2. Group by workflow concern — Triggers, jobs, expressions, matrices, and reusable workflows should be easy to find separately.
  3. Show the sharp edges — Contexts, expressions, and if: logic are where most syntax mistakes happen.
  4. Prefer minimal working snippets — Dense, copyable examples beat broad prose.
  5. Remember CI is a control system — Syntax matters because release safety depends on it.

Quick-Start: Common Problems

"What is the basic workflow shape?"

  1. name
  2. on
  3. jobs
  4. runs-on
  5. steps -> See references/syntax.md

"How do I add a matrix or conditional?"

NeedSyntax area
matrix buildsstrategy.matrix
conditional step/jobif:
expressions${{ ... }}
-> See references/syntax.md

Decision Trees

SignalFocus area
need trigger syntaxon:
need job/step structurejobs: / steps:
need reuseworkflow_call / reusable workflows
need dynamic logicexpressions, contexts, if:

Reference Index

FileContents
references/syntax.mdGitHub Actions syntax, triggers, jobs, matrices, expressions, contexts, env/secrets, reusable workflows, artifacts, and common snippets

Command Palette

Search skills, docs, and navigate Tank