Skip to content

Commit 369e491

Browse files
committed
fix(ci): manifest version regex
to match workflow formatting
1 parent 960cb08 commit 369e491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/bump-manifest-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const newVersion = version.replace('v', '');
55

66
const manifestFile = fs.readFileSync('fxmanifest.lua', { encoding: 'utf8' });
77

8-
const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`);
8+
const newFileContent = manifestFile.replace(/version\(['"].*['"]\)/, `version('${newVersion}')`);
99

1010
fs.writeFileSync('fxmanifest.lua', newFileContent);

0 commit comments

Comments
 (0)