Hire me
Pooyan Razian

Clean up years of GitHub Actions runs automatically

Every workflow run stays in your Actions history forever, unless you clean it up yourself. After a year or two of CI, that history turns into thousands of runs nobody will ever open again. Scrolling through them to find anything useful becomes painful. That is why I built Prune Old GitHub Actions Runs , a GitHub Action that deletes workflow runs older than a number of days you choose, on a schedul... [read more]

July 16, 2026

Clean up years of GitHub Actions runs automatically

Automatically delete old GitHub Actions runs

In this article we will learn an efficient way to delete old GitHub Actions runs. Wondering how to keep the history of Actions clean? ▶️ Org-level retention policy (does not delete the run itself) ▶️ Repo-level retention policy (does not delete the run itself) ✅ Or a more granular automated way? (deletes the run) If you use GitHub, Actions is the native way to build a CI/CD pipeline. However, if y... [read more]

February 28, 2025

Automatically delete old GitHub Actions runs

CI/CD pipeline Best practices 💡

CI/CD best practices ✅ Keep the pipeline fast ✅ Fail fast For example, if "integration tests" fail more often than "unit tests", run them first. ✅ Do not run everything every time Do you need to run the linter in PR? Yes Do you need to run the linter after the merge? Probably not ✅ Avoid "God" pipelines! Split the workflow when it makes sense. ✅ Do not use long-lasting credentials/tokens. If possi... [read more]

May 27, 2024

CI/CD pipeline Best practices 💡

Effective Metrics and Alerts

Monitoring your system effectively is crucial for maintaining performance and user satisfaction. Two popular methodologies for choosing what to measure and monitor are the USE Method and the RED Method. Let's break down how each can guide you in setting metrics and alerts for optimal impact on business and user experience. TL;DR USE Method: Utilization, Saturation, Errors. RED Method: Rate, Errors... [read more]

May 26, 2024

Effective Metrics and Alerts
per page

Clean up years of GitHub Actions runs automatically

Every workflow run stays in your Actions history forever, unless you clean it up yourself. After a year or two of CI, that history turns into thousands of runs nobody will ever open again. Scrolling through them to find anything useful becomes painful. That is why I built Prune Old GitHub Actions Runs , a GitHub Action that deletes workflow runs older than a number of days you choose, on a schedul... [read more]

July 16, 2026

Clean up years of GitHub Actions runs automatically

Automatically delete old GitHub Actions runs

In this article we will learn an efficient way to delete old GitHub Actions runs. Wondering how to keep the history of Actions clean? ▶️ Org-level retention policy (does not delete the run itself) ▶️ Repo-level retention policy (does not delete the run itself) ✅ Or a more granular automated way? (deletes the run) If you use GitHub, Actions is the native way to build a CI/CD pipeline. However, if y... [read more]

February 28, 2025

Automatically delete old GitHub Actions runs

CI/CD pipeline Best practices 💡

CI/CD best practices ✅ Keep the pipeline fast ✅ Fail fast For example, if "integration tests" fail more often than "unit tests", run them first. ✅ Do not run everything every time Do you need to run the linter in PR? Yes Do you need to run the linter after the merge? Probably not ✅ Avoid "God" pipelines! Split the workflow when it makes sense. ✅ Do not use long-lasting credentials/tokens. If possi... [read more]

May 27, 2024

CI/CD pipeline Best practices 💡

Effective Metrics and Alerts

Monitoring your system effectively is crucial for maintaining performance and user satisfaction. Two popular methodologies for choosing what to measure and monitor are the USE Method and the RED Method. Let's break down how each can guide you in setting metrics and alerts for optimal impact on business and user experience. TL;DR USE Method: Utilization, Saturation, Errors. RED Method: Rate, Errors... [read more]

May 26, 2024

Effective Metrics and Alerts
per page
Copyright © 2026 - pooyan.info