Back to Browse

GitHub Actions YAML Anchors: Stop Repeating Yourself in Workflows

1.5K views
Sep 19, 2025
13:09

GitHub just rolled out support for YAML anchors in Actions workflows! But when should you use them instead of reusable workflows or custom actions? In this video, I'll show you exactly when YAML anchors shine and when they don't. 🎯 What You'll Learn: • What YAML anchors, aliases, and merge keys are • Real-world use cases where anchors beat reusable workflows • Why GitHub Actions doesn't support merge keys • Live demos of anchors reducing workflow repetition • When to use anchors vs. reusable workflows vs. custom actions 🔗 Resources: • GitHub Docs: https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations#yaml-anchors-and-aliases • Example workflows from this video: https://github.com/devopselvis/yaml-anchors If this helped you clean up your GitHub Actions workflows, hit that subscribe button and let me know in the comments what you'd like to see next! #GitHubActions #YAML #DevOps #CI #CD

Download

1 formats

Video Formats

360pmp417.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

GitHub Actions YAML Anchors: Stop Repeating Yourself in Workflows | NatokHD