Skip to content

Commit

Permalink
ci: update versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTaylorLee committed Sep 13, 2024
1 parent afe312c commit 5ccd914
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 28 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/scripts/Invoke-versionbump.ps1
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# admintoolbox
$path = "$workingdirectory/modules/AdminToolbox/ChangeLog.md"; $step = Get-Content "$workingdirectory/modules/AdminToolbox/ChangeLog.md" | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Update required modules' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#activedirectory
$path = "$workingdirectory/modules/AdminToolbox.ActiveDirectory/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.ActiveDirectory/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#endpointmanagement
$path = "$workingdirectory/modules/AdminToolbox.EndpointManagement/ChangeLog.md" ; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.EndpointManagement/ChangeLog.md" ; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#Exchange
$path = "$workingdirectory/modules/AdminToolbox.Exchange/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.Exchange/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#fftools
$path = "$workingdirectory/modules/AdminToolbox.FFTools/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.FFTools/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#filemanagement
$path = "$workingdirectory/modules/AdminToolbox.FileManagement/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.FileManagement/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#fun
$path = "$workingdirectory/modules/AdminToolbox.Fun/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.Fun/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#msgraph
$path = "$workingdirectory/modules/AdminToolbox.MSGraph/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.MSGraph/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#networking
$path = "$workingdirectory/modules/AdminToolbox.Networking/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.Networking/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#office365
$path = "$workingdirectory/modules/AdminToolbox.Office365/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.Office365/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#remoting
$path = "$workingdirectory/modules/AdminToolbox.Remoting/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.Remoting/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#vmwareautomate
$path = "$workingdirectory/modules/AdminToolbox.VMWareAutomate/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/AdminToolbox.VMWareAutomate/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
#fortiwizard
$path = "$workingdirectory/modules/Admintoolbox.FortiWizard/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
$path = "$workingdirectory/modules/Admintoolbox.FortiWizard/ChangeLog.md"; $step = Get-Content $path | Select-Object -Last 1; $step2 = $step.trimstart('* **'); $step3 = ($step2).split('*'); [version]$step4 = ($step3 | Select-Object -First 1); [string]$major = $step4.major; [string]$minor = $step4.minor; [string]$build = ($step4.build); [string]$revision = ($step4.revision + 1); "`n* **" + $major + '.' + $minor + '.' + $build + '.' + $revision + '** CI Maintenance Release' | Out-File $path -Append -NoNewline
5 changes: 3 additions & 2 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
test | Testing changes

**Version Guidelines**
MAJOR.MINOR.REVISION
MAJOR.MINOR.Build.Revision

MAJOR: Adding multiple new functions or major refactoring of a module \
MINOR: Adding or updating few functions that don't result in functional changes to a module \
REVISION: is usually a fix for a previous minor release (no new functionality).
Build: is usually a fix for a previous minor release (no new functionality). \
Revision: Versions created automatically by workflows.
3 changes: 2 additions & 1 deletion modules/AdminToolbox.ActiveDirectory/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,5 @@
* **1.10.34** CI Maintenance Release
* **1.10.35** Fix get-userreport proxyaddresses join result
* **1.10.36** CI Maintenance Release
* **1.10.37** CI Maintenance Release
* **1.10.37** CI Maintenance Release
* **1.11.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.EndpointManagement/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,5 @@
* **4.10.49** CI Maintenance Release
* **4.10.50** CI Maintenance Release
* **4.10.51** CI Maintenance Release
* **4.10.52** CI Maintenance Release
* **4.10.52** CI Maintenance Release
* **4.11.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.Exchange/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,5 @@
* **1.9.172** CI Maintenance Release
* **1.9.173** CI Maintenance Release
* **1.9.174** CI Maintenance Release
* **1.9.175** CI Maintenance Release
* **1.9.175** CI Maintenance Release
* **1.10.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.FFTools/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,5 @@
* **4.16.121** CI Maintenance Release
* **4.16.122** CI Maintenance Release
* **4.16.123** CI Maintenance Release
* **4.16.124** CI Maintenance Release
* **4.16.124** CI Maintenance Release
* **4.17.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.FileManagement/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,5 @@
* **1.16.163** CI Maintenance Release
* **1.16.164** CI Maintenance Release
* **1.16.165** CI Maintenance Release
* **1.16.166** CI Maintenance Release
* **1.16.166** CI Maintenance Release
* **1.17.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.FortiWizard/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,5 @@
* **2.19.27** CI Maintenance Release
* **2.19.28** CI Maintenance Release
* **2.19.29** CI Maintenance Release
* **2.19.30** CI Maintenance Release
* **2.19.30** CI Maintenance Release
* **2.20.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.Fun/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,5 @@
* **1.6.172** CI Maintenance Release
* **1.6.173** CI Maintenance Release
* **1.6.174** CI Maintenance Release
* **1.6.175** CI Maintenance Release
* **1.6.175** CI Maintenance Release
* **1.7.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.MSGraph/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,5 @@
* **1.3.25** CI Maintenance Release
* **1.3.26** CI Maintenance Release
* **1.3.27** CI Maintenance Release
* **1.3.28** CI Maintenance Release
* **1.3.28** CI Maintenance Release
* **1.4.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.Networking/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,5 @@
* **2.20.12** CI Maintenance Release
* **2.20.13** CI Maintenance Release
* **2.20.14** CI Maintenance Release
* **2.20.15** CI Maintenance Release
* **2.20.15** CI Maintenance Release
* **2.21.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.Office365/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,5 @@
* **4.0.33** CI Maintenance Release
* **4.1.0** Update pnp module functions to login using the new app registration method.
* **4.1.1** CI Maintenance Release
* **4.1.2** Add size unit descriptors to pscustomobject File Size results
* **4.1.2** Add size unit descriptors to pscustomobject File Size results
* **4.2.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.Remoting/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,5 @@
* **1.9.171** CI Maintenance Release
* **1.9.172** CI Maintenance Release
* **1.9.173** CI Maintenance Release
* **1.9.174** CI Maintenance Release
* **1.9.174** CI Maintenance Release
* **1.10.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox.VMWareAutomate/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,5 @@
* **4.8.168** CI Maintenance Release
* **4.8.169** CI Maintenance Release
* **4.8.170** CI Maintenance Release
* **4.8.171** CI Maintenance Release
* **4.8.171** CI Maintenance Release
* **4.9.0.0** Add workflow versioning
3 changes: 2 additions & 1 deletion modules/AdminToolbox/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,4 +367,5 @@
* **11.0.179** CI Update required modules
* **11.0.180** CI Update required modules
* **11.0.181** CI Update required modules
* **11.0.182** CI Update required modules
* **11.0.182** CI Update required modules
* **11.1.0.0** Add workflow versioning

0 comments on commit 5ccd914

Please sign in to comment.