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
Prerelease cleanup now runs as an independent workflow action, so
publish logic and cleanup logic can execute in the right scenarios
without being coupled to module artifact download.
## Changed: Publish and cleanup are now separate actions
`Publish-PSModule` now only performs artifact download and
publish/release work, while cleanup moved into a dedicated
`Cleanup-PSModulePrereleases` action.
## Fixed: No-build cleanup paths no longer depend on publish action
internals
`Publish-Module.yml` now runs publish only when `ReleaseType != 'None'`,
and runs cleanup independently when `ReleaseType != 'Prerelease'` with
existing AutoCleanup and WhatIf controls.
## Technical Details
- Removed cleanup inputs and cleanup step from
`.github/actions/Publish-PSModule/action.yml`.
- Added `.github/actions/Cleanup-PSModulePrereleases/` with its own
composite action and cleanup script.
- Updated `.github/workflows/Publish-Module.yml` to call the two actions
as separate, scenario-gated steps.
- Preserved release-tag exclusion by passing
`PSMODULE_PUBLISH_PSMODULE_CONTEXT_ReleaseTag` into the cleanup action
when publish ran earlier in the job.
- Implementation plan progress: completed the decoupling requested in
issue #376 by separating cleanup from publish artifact flow.
<details>
<summary>Related issues</summary>
- Fixes#376
</details>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .github/actions/Publish-PSModule/action.yml
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,12 @@ 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.
11
11
required: false
12
12
default: outputs/module
13
13
APIKey:
14
14
description: PowerShell Gallery API Key.
15
15
required: true
16
-
AutoCleanup:
17
-
description: Control whether to automatically delete the prerelease tags after the stable release is created.
18
-
required: false
19
-
default: 'true'
20
16
WhatIf:
21
17
description: If specified, the action will only log the changes it would make, but will not actually create or delete any releases or tags.
0 commit comments