Skip to content

Commit

Permalink
feat(main.yml): add new environment variables for tracking changes in…
Browse files Browse the repository at this point in the history
… src, docs, and automation

fix(main.yml): modify release condition to check for changes in src and docs, ensuring releases only happen when relevant changes are made
  • Loading branch information
MrHinsh committed Jul 17, 2024
1 parent 104ed1e commit eaa89f0
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 eaa89f0

Please sign in to comment.