logs: downgrade workflows warn

This commit is contained in:
Rhys Arkins 2021-05-14 23:30:03 +02:00
parent 7a22e6c07a
commit e42e07b609

View file

@ -781,9 +781,8 @@ export async function commitFiles({
err.message.includes('remote rejected') && err.message.includes('remote rejected') &&
files?.some((file) => file.name?.startsWith('.github/workflows/')) files?.some((file) => file.name?.startsWith('.github/workflows/'))
) { ) {
logger.warn( logger.debug({ err }, 'commitFiles error');
'Workflows update rejection - aborting branch. Please check permissions.' logger.info('Workflows update rejection - aborting branch.');
);
return null; return null;
} }
if (err.message.includes('protected branch hook declined')) { if (err.message.includes('protected branch hook declined')) {