File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,29 @@ jobs:
2525 $change = @(git diff --name-only HEAD~ HEAD -- (Resolve-Path .\src\*\*.psd1)).Count
2626 "psd1_changed=$( $change ? $true : $null )" >> $env:GITHUB_OUTPUT
2727 Get-Content $env:GITHUB_OUTPUT -Raw
28+ - name : Try changed files approach
29+ id : try-psd1-changed
30+ uses : tj-actions/changed-files@v45
31+ with :
32+ files : src/*/*.psd1
33+ - name : Check changed files output
34+ env :
35+ try_psd1_has_changed : ${{ steps.try-psd1-changed.outputs.any_changed }}
36+ run : |
37+ "changed? $env:try_psd1_has_changed"
38+ - name : Did change
39+ if : ${{ steps.try-psd1-changed.outputs.any_changed == 'true' }}
40+ run : |
41+ "Changed!"
42+ - name : Did not change
43+ if : ${{ steps.try-psd1-changed.outputs.any_changed != 'true' }}
44+ run : |
45+ "Did not change."
2846 publish :
2947 name : Publish to PowerShell Gallery
3048 runs-on : windows-latest
3149 needs : setup
32- if : ${{ needs.setup.outputs.psd1_changed }}
50+ if : ${{ needs.setup.outputs.psd1_changed }}e
3351 env :
3452 gallerykey : ${{ secrets.gallerykey }}
3553 steps :
Original file line number Diff line number Diff line change 22# and https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-modulemanifest
33@ {
44RootModule = ' SelectXmlExtensions.dll'
5- ModuleVersion = ' 1.1.10' # retry 2025-03-02T12:40
5+ ModuleVersion = ' 1.1.10' # testing
66CompatiblePSEditions = @ (' Core' )
77GUID = ' b830f4ec-f7cf-4df4-97bb-aaa13fb125c9'
88Author = ' Brian Lalonde'
You can’t perform that action at this time.
0 commit comments