Skip to content

Commit

Permalink
feat(main.yml): add new environment variables HasChanged_src, HasChan…
Browse files Browse the repository at this point in the history
…ged_docs, HasChanged_automation to track changes in specific directories

fix(main.yml): modify release-options condition to check for changes in src and docs directories before making an announcement, ensuring unnecessary announcements are avoided
  • Loading branch information
MrHinsh committed Jul 17, 2024
1 parent d1db876 commit 5e09e9f
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 @@ -251,6 +251,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 @@ -270,7 +273,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 5e09e9f

Please sign in to comment.