You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run prerelease cleanup independently when no module artifact is produced by gating publish-only steps behind CreateRelease and driving cleanup behavior from ReleaseType.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/actions/Publish-PSModule/action.yml
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,17 @@ inputs:
7
7
description: Name of the module to publish.
8
8
required: false
9
9
ModulePath:
10
-
description: Path to the folder containing the <Name>/ module subdirectory from Build-PSModule. A module artifact must exist before invoking this action.
10
+
description: Path to the folder containing the <Name>/ module subdirectory from Build-PSModule. Required only when CreateRelease is true.
11
11
required: false
12
12
default: outputs/module
13
+
CreateRelease:
14
+
description: When true, downloads the module artifact and runs publish.ps1 (PowerShell Gallery + GitHub Release flow).
15
+
required: false
16
+
default: 'false'
17
+
ReleaseType:
18
+
description: Resolved release type from settings (Release, Prerelease, None). Used to control prerelease cleanup behavior.
0 commit comments