Skip to content

Commit

Permalink
Restrict discusion post to only meanigfull updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Jul 16, 2024
1 parent bfb4d4c commit e8459ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e8459ca

Please sign in to comment.