Skip to content

Commit 5a225f7

Browse files
committed
👷 Try another action for deployment
1 parent 360744f commit 5a225f7

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

src/SelectXmlExtensions/SelectXmlExtensions.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-modulemanifest
33
@{
44
RootModule = 'SelectXmlExtensions.dll'
5-
ModuleVersion = '1.1.10' # retry 2025-03-02T12:40
5+
ModuleVersion = '1.1.10' # testing
66
CompatiblePSEditions = @('Core')
77
GUID = 'b830f4ec-f7cf-4df4-97bb-aaa13fb125c9'
88
Author = 'Brian Lalonde'

0 commit comments

Comments
 (0)