New batchZero to DevOps starts 29 Nov · limited seatsReserve your seat
Cheat sheetsGitHub ActionsGitHub Actions
ProSheet 05 of 6

Workflow Optimization & Troubleshooting

A comprehensive developer cheatsheet covering GitHub Actions workflow optimization and troubleshooting, featuring essential YAML configurations and operational workflows for dependency caching, concurrency control, interactive debugging, security scanning, and resolving common CI/CD pitfalls.

Workflow Optimization Overview

Optimization Areas

AreaImpactStrategy
Build SpeedHighCaching, parallel jobs
CostHighSkip on docs, cancel stale runs
ReliabilityHighRetry, timeout, idempotency
DebuggingMediumLogging, tmate, artifacts
SecurityHighScanning, secrets, least privilege

Common Optimization Techniques

TechniqueDescription
Cache DependenciesReuse downloaded packages
Parallel JobsRun independent jobs in parallel
Skip WorkflowsSkip on documentation changes
Cancel In-progressCancel stale runs on new commits
Use if ConditionsSkip unnecessary steps
Use continue-on-errorAllow non-critical steps to fail

The rest of this sheet is locked3 Pro sheets unlock together, across every toolEveryPro sheet, every toolLifetimeone payment, no renewalNewsheets included as they shipOne-time payment · lifetime access
GitHub Actions cheat sheet: Workflow Optimization & Troubleshooting | InfraThrone DevOps Park