Remove failed deployments < 2023.11.22
CodeGat opened this issue · 1 comments
CodeGat commented
Background
The failed deployments are still showing up, even after deleting the workflow runs that failed. Clean this up so the only deployments that show up are after 2023.11.21.
These failed runs were created during the initial configuration and aren't required anymore.
Solution
- GitHub doesn't allow you to delete this natively
- https://github.com/strumwolf/delete-deployment-environment you can delete environments and artifacts with this action
Further information in this StackOverflow post: https://stackoverflow.com/questions/72788012/delete-github-repository-deployment-history
CodeGat commented
Completed by using repeated gh api
calls to list deployment IDs and delete deployments that way.