From 1fb83561fac68778ea7a4b49540808055ff16d66 Mon Sep 17 00:00:00 2001 From: Gregor Date: Thu, 28 Mar 2019 10:36:53 -0700 Subject: [PATCH] build: correctly check for changes in cron job --- lib/create-pr-on-change.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/create-pr-on-change.js b/lib/create-pr-on-change.js index c15214571..0a76b74e7 100644 --- a/lib/create-pr-on-change.js +++ b/lib/create-pr-on-change.js @@ -8,7 +8,7 @@ async function createPrOnChange () { const branchName = `cron/webhooks-changes/${new Date().toISOString().substr(0, 10)}` // check if webhook files changed - const { stdout } = await execa('git', ['status', 'index.js']) + const { stdout } = await execa('git', ['status']) if (/nothing to commit/.test(stdout)) { console.log('🤖 No changes detected in cron job.') return