Fixed style css commit in deploy action

This commit is contained in:
Jason Crist 2021-12-16 14:06:38 -05:00
parent 513c6ed424
commit c9550de50b

View file

@ -397,7 +397,7 @@ async function versionBumpTheme(theme, addChanges){
console.log(`${theme} needs a version bump`);
await executeCommand(`perl -pi -e 's/Version: ((\\d+\\.)*)(\\d+)(.*)$/"Version: ".$1.($3+1).$4/ge' ${theme}/style.css`, true);
await executeCommand(`git add ${file}`);
await executeCommand(`git add ${theme}/style.css`);
let styleCss = fs.readFileSync(`${theme}/style.css`, 'utf8');
let currentVersion = getThemeMetadata(styleCss, 'Version');