Refactor release post deprecations and removals script to work with relative dates
Ideally as part of the move to releasing GitLab on the 3rd Thursday of the Month, we'll update Release Post automation to accommodate the new distribution date.
The deprecation and removals automation is triggered by scheduled pipeline at midnight UTC on the 4, 18, 19, 20, 21st of the month (0 0 4,18,19,20,21 * *)
Problem: Schedule includes hardcoded dates that are after kickoff (4th) and after assembly but before release (18 - 21)
Possible Solution:
- Refactor bin/release-post-deprecations-removals to include a short-circuit that returns if the current date is not the 4th or between 4 and 1 days out from the Release Thursday
- Update the cron config to run every day at midnight UTC
Workaround as noted in &2215 (comment 1508609516): We could disable the scheduled pipeline, and run this pipeline manually either in the UI or locally. The Release Post Manager or Technical Advisor could run the script locally. Chase Southard as scheduled pipeline owner could run the pipeline manually as well.
Related Issue: #34226 (closed)