浏览代码

Fixed style css commit in deploy action

Jason Crist 3 年之前
父节点
当前提交
c9550de50b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      theme-utils.mjs

+ 1 - 1
theme-utils.mjs

@@ -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');