Skip to content

Commit

Permalink
Start the RCP 2 days earlier for stage
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo committed May 27, 2024
1 parent 72f56cf commit 6a345a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/merge-to-stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,12 @@ const main = async (params) => {
}
for (const { start, end } of RCPDates) {
const adjustedStart = new Date(start);
adjustedStart.setDate(adjustedStart.getDate() - 1);
adjustedStart.setDate(adjustedStart.getDate() - 2);

if (adjustedStart <= now && now <= end) {
console.log('Current date is within a RCP. Stopping execution.');
console.log(
'Current date is within a RCP (2 days earlier for stage, to keep stage clean & make CSO contributions during an RCP easier). Stopping execution.'
);
return;
}
}
Expand Down

0 comments on commit 6a345a8

Please sign in to comment.