Skip to content

Commit

Permalink
Start the RCP for stage a day earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo committed May 27, 2024
1 parent 29d0a16 commit 72f56cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/merge-to-stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,10 @@ const main = async (params) => {
throw new Error('ADD NEW RCPs');
}
for (const { start, end } of RCPDates) {
if (start <= now && now <= end) {
const adjustedStart = new Date(start);
adjustedStart.setDate(adjustedStart.getDate() - 1);

if (adjustedStart <= now && now <= end) {
console.log('Current date is within a RCP. Stopping execution.');
return;
}
Expand Down

0 comments on commit 72f56cf

Please sign in to comment.