Skip to content

Commit 73bb99c

Browse files
author
Andrew Hall
committed
Fix nuspec file path
1 parent 4b3ba57 commit 73bb99c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/createTagsTasks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ async function getCommitFromNugetAsync(packageInfo: NugetPackageInfo): Promise<s
175175
return null;
176176
}
177177

178-
const nuspecFile = fs.readFileSync(nuspecFiles[0]).toString();
178+
const nuspecFilePath = path.join(packageDir, nuspecFiles[0]);
179+
const nuspecFile = fs.readFileSync(nuspecFilePath).toString();
179180
const results = /commit="(.*)"/.exec(nuspecFile);
180181
if (results == null || results.length == 0) {
181182
logError('Failed to find commit number from nuspec file');

0 commit comments

Comments
 (0)