An option for an artifact upload to remove all previous artifacts with the same name.
Why is this needed?
In many cases, only the most recently generated artifact is useful. For example, when building binaries for private use, older versions are not required. When the binaries are generated only after the tests pass, then they can easily be regenerated by reverting and rebuilding when needed.
What would you like to be added?
An option for an artifact upload to remove all previous artifacts with the same
name
.Why is this needed?
In many cases, only the most recently generated artifact is useful. For example, when building binaries for private use, older versions are not required. When the binaries are generated only after the tests pass, then they can easily be regenerated by reverting and rebuilding when needed.
Relatedly, most Actions for GitHub Pages allow retaining only the latest version via, for example
force_orphan
(https://github.com/peaceiris/actions-gh-pages).