Skip to content

Commit ed0deac

Browse files
Align publish gating with resolved settings path
Use Settings.Publish.Module.Resolution.ReleaseType in Publish-Module workflow to match the enriched settings shape from Plan.yml. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 31938e2 commit ed0deac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/Publish-Module.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
persist-credentials: false
3939

4040
- name: Publish module
41-
if: fromJson(inputs.Settings).Module.ReleaseType != 'None'
41+
if: fromJson(inputs.Settings).Publish.Module.Resolution.ReleaseType != 'None'
4242
uses: ./_wf/.github/actions/Publish-PSModule
4343
env:
4444
GH_TOKEN: ${{ github.token }}
@@ -53,7 +53,7 @@ jobs:
5353
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
5454

5555
- name: Cleanup prereleases
56-
if: fromJson(inputs.Settings).Module.ReleaseType != 'Prerelease'
56+
if: fromJson(inputs.Settings).Publish.Module.Resolution.ReleaseType != 'Prerelease'
5757
uses: ./_wf/.github/actions/Cleanup-PSModulePrereleases
5858
env:
5959
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)