gh action: do not approve on Tuesday

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-04-29 10:11:01 +02:00
parent b60508539e
commit 8cdc951bc1
@@ -18,6 +18,12 @@ jobs:
const owner = 'backstage';
const repo = 'backstage';
const date = new Date();
if (date.getDay() === 2) {
console.log('Skipping auto approve because Tuesday is release day');
return;
}
if (context.payload.pull_request.changed_files !== 1) {
console.log('Skipping approval because multiple files are changed in this PR');
return;