Skip to content

Commit

Permalink
Reset the shouldUpdate config value after updating the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Dec 7, 2020
1 parent 396fec9 commit ea80a4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/update-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const { getRelease } = require('get-release');
const gh = require('parse-github-url');
const pkg = require('./package.json');
const runBackground = require('./utils/run-background');
const config = require('./utils/get-config');

console.log('Update workflow');

Expand Down Expand Up @@ -45,4 +46,5 @@ async function download(url, target) {
console.log(`Downloaded the new version!`);
console.log('Updating the workflow...');
runBackground(filepath, 'open');
config.set('shouldUpdate', false);
})();

0 comments on commit ea80a4a

Please sign in to comment.