Skip to content

Commit 269d0cb

Browse files
Update to use Publish.Module.ReleaseType and Publish.Module.CleanupPrereleases
1 parent 29d1790 commit 269d0cb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/Publish-Module.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
ModulePath: outputs/module
5050
APIKey: ${{ secrets.APIKEY }}
5151
WhatIf: ${{ github.repository == 'PSModule/Process-PSModule' }}
52-
AutoCleanup: ${{ fromJson(inputs.Settings).Publish.Module.AutoCleanup }}
52+
CleanupPrereleases: ${{ fromJson(inputs.Settings).Publish.Module.CleanupPrereleases }}
5353
AutoPatching: ${{ fromJson(inputs.Settings).Publish.Module.AutoPatching }}
5454
DatePrereleaseFormat: ${{ fromJson(inputs.Settings).Publish.Module.DatePrereleaseFormat }}
5555
IgnoreLabels: ${{ fromJson(inputs.Settings).Publish.Module.IgnoreLabels }}
56-
ReleaseType: ${{ fromJson(inputs.Settings).Run.ReleaseType }}
56+
ReleaseType: ${{ fromJson(inputs.Settings).Publish.Module.ReleaseType }}
5757
IncrementalPrerelease: ${{ fromJson(inputs.Settings).Publish.Module.IncrementalPrerelease }}
5858
MajorLabels: ${{ fromJson(inputs.Settings).Publish.Module.MajorLabels }}
5959
MinorLabels: ${{ fromJson(inputs.Settings).Publish.Module.MinorLabels }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ The following settings are available in the settings file:
392392
| `Build.Docs.ShowSummaryOnSuccess` | `Boolean` | Show super-linter summary on success for documentation linting | `false` |
393393
| `Build.Site.Skip` | `Boolean` | Skip site build | `false` |
394394
| `Publish.Module.Skip` | `Boolean` | Skip module publishing | `false` |
395-
| `Publish.Module.AutoCleanup` | `Boolean` | Automatically clean up old prerelease module versions | `true` |
395+
| `Publish.Module.CleanupPrereleases` | `Boolean` | Automatically clean up old prerelease tags when merging to main or when a PR is abandoned | `true` |
396396
| `Publish.Module.AutoPatching` | `Boolean` | Automatically patch module version | `true` |
397397
| `Publish.Module.IncrementalPrerelease` | `Boolean` | Use incremental prerelease versioning | `true` |
398398
| `Publish.Module.DatePrereleaseFormat` | `String` | Format for date-based prerelease (uses [.NET DateTime format strings](https://learn.microsoft.com/dotnet/standard/base-types/standard-date-and-time-format-strings)) | `''` |
@@ -466,7 +466,7 @@ Test:
466466
Publish:
467467
Module:
468468
Skip: false
469-
AutoCleanup: true
469+
CleanupPrereleases: true
470470
AutoPatching: true
471471
IncrementalPrerelease: true
472472
DatePrereleaseFormat: ''

tests/srcWithManifestTestRepo/.github/PSModule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Test:
1010
CodeCoverage:
1111
PercentTarget: 1
1212
Publish:
13-
AutoCleanup: false
13+
Module:
14+
CleanupPrereleases: false
1415
Linter:
1516
env:
1617
VALIDATE_BIOME_FORMAT: false

0 commit comments

Comments
 (0)