Skip to content

Commit 7549c10

Browse files
committed
Wire up CHANGELOG.md and README.md
1 parent 1b45b88 commit 7549c10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

eng/scripts/Language-Settings.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ function Get-rust-PackageInfoFromPackageFile([IO.FileInfo]$pkg, [string]$working
160160
$packageName = $package.name
161161
$packageVersion = $package.version
162162

163-
$changeLogLoc = Get-ChildItem -Path $pkg.DirectoryName -Filter "CHANGELOG.md" | Select-Object -First 1
164-
$readmeContentLoc = Get-ChildItem -Path $pkg.DirectoryName -Filter "README.md" | Select-Object -First 1
163+
$packageAssetPath = Join-Path $extractionPath "$packageName-$packageVersion"
164+
165+
$changeLogLoc = Get-ChildItem -Path $packageAssetPath -Filter "CHANGELOG.md" | Select-Object -First 1
166+
$readmeContentLoc = Get-ChildItem -Path $packageAssetPath -Filter "README.md" | Select-Object -First 1
165167

166168
if ($changeLogLoc) {
167169
$releaseNotes = Get-ChangeLogEntryAsString -ChangeLogLocation $changeLogLoc -VersionString $packageVersion

0 commit comments

Comments
 (0)