diff --git a/update.js b/update.js index 2b25102..96cf558 100644 --- a/update.js +++ b/update.js @@ -25,8 +25,11 @@ const TEMPLATE_REPO = 'https://github.com/HelpDev/NGO-HelpDev-Storyblok.git'; if (!error.message.includes('already exists')) { throw error; } + + await git.raw('switch', 'template'); } - await git.raw('fetch', 'template'); + + await git.raw('pull'); // Move to origin main await git.raw('switch', 'main');