Skip to content

Commit

Permalink
build: correctly check for changes in cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 28, 2019
1 parent 5ac0de4 commit 1fb8356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/create-pr-on-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fb8356

Please sign in to comment.