Open
Description
Background
Currently, we create new branches automatically, using a GH Actions, with the pattern rebuild/nightly_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
for example rebuild/nightly_2022_06_21_01_37_06. The push event to that branches then triggers the nightly CI builds.We need to run a cleanup manually, periodically, in order to remove the zombie branches.
It would be better to also call a cleanup task, in the same GH Actions, which removes automatically nightly branches, older than 3 working days.
Acceptance Criteria
- Implement a new command which:
- Finds all branches with the pattern
rebuild/nightly_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
which are older than 3 working days - Removes the branches on Github
- Finds all branches with the pattern