소스 검색

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`);
 	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(`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 styleCss = fs.readFileSync(`${theme}/style.css`, 'utf8');
 	let currentVersion = getThemeMetadata(styleCss, 'Version');
 	let currentVersion = getThemeMetadata(styleCss, 'Version');