Keep only the latest run active for a branch or PR.
Section: Frequent CI/CD problems and fixes
Cancel outdated duplicate runs
yaml
yaml
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: trueExplanation
Canceling superseded runs keeps queues healthy and reduces waste.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Frequent CI/CD problems and fixes
Missing secrets or permissions
Fail early when credentials or roles are unavailable.
Retry flaky network operations
Wrap downloads or package installs with bounded retries.
Enable GitHub Actions step debug logging
Turn on runner debug logs for detailed troubleshooting.
Replay Jenkins pipeline with edits
Retry a failed Jenkins pipeline with small script adjustments.