diff --git a/.github/workflows/Build_mR-NB.yml b/.github/workflows/Build_mR-NB.yml index 4febf984e..bfb4d4acd 100644 --- a/.github/workflows/Build_mR-NB.yml +++ b/.github/workflows/Build_mR-NB.yml @@ -66,7 +66,8 @@ jobs: $version = "${{ steps.version.outputs.version }}" $changelogPath = "$env:GITHUB_WORKSPACE\CHANGELOG.md" $content = Get-Content $changelogPath -Raw - + echo "Content: $content" + # Match the section for the current version $pattern = "## \[$version\][^\#]+" if ($content -match $pattern) {