action: fix invalid file name comparison
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ jobs:
|
||||
pull_number: context.issue.number,
|
||||
});
|
||||
|
||||
if (r.data.every((f) => f.filename.split('/').slice(-1)[0] === 'yarn.lock')) {
|
||||
if (r.data.every((f) => f.filename.split('/').slice(-1)[0] !== 'yarn.lock')) {
|
||||
console.log('skipping approval since some files are not yarn.lock');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user