From e8459ca2608d266838e21cb08b0e727c9d033f08 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Tue, 16 Jul 2024 18:00:26 +0100 Subject: [PATCH] Restrict discusion post to only meanigfull updates --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5050c7845..76fb00b04 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -248,6 +248,9 @@ jobs: GitVersion_InformationalVersion: ${{ needs.Setup.outputs.GitVersion_InformationalVersion }} GitVersion_NuGetVersion: ${{ needs.Setup.outputs.GitVersion_NuGetVersion }} GitVersion_PreReleaseLabel: ${{ needs.Setup.outputs.GitVersion_PreReleaseLabel }} + HasChanged_src: ${{ needs.Setup.outputs.HasChanged_src }} + HasChanged_docs: ${{ needs.Setup.outputs.HasChanged_docs }} + HasChanged_automation: ${{ needs.Setup.outputs.HasChanged_automation }} needs: [build, Setup] if: ${{ success() && ( needs.Setup.outputs.nkdAgility_Ring != 'Canary' ) }} steps: @@ -267,7 +270,7 @@ jobs: id: release-options shell: pwsh run: | - if ($Env:nkdAgility_Ring -ne 'Canary') { + if ($Env:nkdAgility_Ring -ne 'Canary' && ($Env:HasChanged_src || $Env:HasChanged_docs )) { echo "discussion_category_name=Anouncement" >> $env:GITHUB_OUTPUT } - name: Release