From 879b7b81782e8b237e7b19c37dd5a195eac4aa50 Mon Sep 17 00:00:00 2001 From: RoderickB <13252390+webtonize@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:34:15 +0100 Subject: [PATCH] Release notes in published module manifest (#56) Fixes #37 --- .github/workflows/publish-on-release.yml | 2 +- .github/workflows/wiki.yml | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-on-release.yml b/.github/workflows/publish-on-release.yml index 62f640c..9821886 100644 --- a/.github/workflows/publish-on-release.yml +++ b/.github/workflows/publish-on-release.yml @@ -26,7 +26,7 @@ jobs: # Update the module manifest with the version number in the release tag $version = $env:GITHUB_REF -replace 'refs/tags/v' $path = './src/PSRule.Rules.AzureDevOps/PSRule.Rules.AzureDevOps.psd1' - Update-ModuleManifest -Path $path -ModuleVersion $version + Update-ModuleManifest -Path $path -ModuleVersion $version -ReleaseNotes "${{ github.event.release.body }}" - name: Publish module shell: pwsh diff --git a/.github/workflows/wiki.yml b/.github/workflows/wiki.yml index 36dd285..2406f95 100644 --- a/.github/workflows/wiki.yml +++ b/.github/workflows/wiki.yml @@ -30,12 +30,14 @@ jobs: - name: Copy wiki base sources shell: bash run: | - mkdir -p ./wiki - mkdir -p ./wiki/rules + rm -f ./wiki/*.md + rm -f ./wiki/rules/*.md # Copy wiki base page cp ./main/README.md ./wiki/Home.md # Copy wiki rules cp ./main/src/PSRule.Rules.AzureDevOps/en/*.md ./wiki/rules + # Copy docs + cp ./main/docs/*.md ./wiki - name: Generate Module docs shell: pwsh