We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 004d3ce commit bab393fCopy full SHA for bab393f
1 file changed
.github/actions/has-changes/action.yml
@@ -95,5 +95,14 @@ runs:
95
96
$csProjPath = "$([IO.Path]::Combine(".", "$($SelectedProject)", "$($SelectedProject).csproj"))"
97
$hasDifferences = HasChanges -CsprojPath $csProjPath -CurrentHash $currentHash -PrevHash $lastReleaseHash
98
+ if ($hasDifferences) {
99
+ $nuspecPath = "$([IO.Path]::Combine(".", "$($SelectedProject)", "$($SelectedProject).nuspec"))"
100
+ [xml]$nuspec = Get-Content $nuspecPath
101
+ $hashFromNuspec = $nuspec.package.metadata.repository.commit
102
+ if ($hashFromNuspec) {
103
+ $hasDifferences = HasChanges -CsprojPath $csProjPath -CurrentHash $currentHash -PrevHash $hashFromNuspec
104
+ }
105
106
+
107
"result=$("$($hasDifferences)".ToLowerInvariant())" >> $env:GITHUB_OUTPUT
108
exit 0
0 commit comments