Skip to content

Commit

Permalink
Merge pull request #93 from smoonlee/3.1.18.3-prod
Browse files Browse the repository at this point in the history
Executing Release Build
  • Loading branch information
smoonlee authored Aug 17, 2024
2 parents 69dae23 + e0351c5 commit f9ebfae
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ Version: 3.1.17 - August 2024 | GitHub Action Bump - No change made to profile
Version: 3.1.18 - August 2024 | Created Get-AzVMQuotaCheck
Version: 3.1.18.1 - August 2024 | Code Tidy and Get-AzVMQuotaCheck released
Version: 3.1.18.2 - August 2024 | Updated Get-AzVMQuotaCheck Logic
Version: 3.1.18.3 - August 2024 | Added aksReleaseCalendar switch to Get-AksVersion Function
#>

# Oh My Posh Profile Version
$profileVersion = '3.1.18.2-prod'
$profileVersion = '3.1.18.3-prod'

# GitHub Repository Details
$gitRepositoryUrl = "https://api.github.com/repos/smoonlee/oh-my-posh-profile/releases"
Expand Down Expand Up @@ -277,7 +278,8 @@ function Get-PSProfileUpdate {
param (
[string] $profileRelease,
[string] $profileReleaseNotes,
[string] $profileDownloadUrl
[string] $profileDownloadUrl,
[string] $profileVersion
)

Write-Output "Checking for PSProfile Release..." `r
Expand Down Expand Up @@ -320,7 +322,8 @@ function Get-PSProfileUpdate {
# Function - Update PowerShell Profile
function Update-PSProfile {
param (
[switch] $devMode
[switch] $devMode,
[switch] $force
)

if ($devMode) {
Expand All @@ -337,6 +340,8 @@ function Update-PSProfile {
return
}



# Get Latest Profile Release
Get-PSProfileUpdate -profileRelease $newProfileReleaseTag -profileDownloadUrl $newProfileReleaseUrl -profileReleaseNotes $newProfileReleaseNotes
}
Expand Down Expand Up @@ -416,7 +421,7 @@ function Get-DnsResult {
# Function - Get Azure Kubernetes Service Version
function Get-AksVersion {
param (
[Parameter(Mandatory = $true)]
[Parameter(Mandatory = $false)]
[ValidateSet("eastus", "eastus2", "southcentralus", "westus", "northcentralus",
"westus2", "centralus", "westcentralus", "canadacentral", "canadaeast",
"brazilsouth", "northeurope", "westeurope", "uksouth", "ukwest",
Expand All @@ -427,8 +432,15 @@ function Get-AksVersion {
"southafricanorth", "southafricawest", "uaenorth", "uaecentral",
"switzerlandnorth", "switzerlandwest", "germanynorth", "germanywestcentral",
"norwayeast", "norwaywest")]
[string]$location
[string]$location,
[switch]$aksReleaseCalendar
)

if ($aksReleaseCalendar) {
Start-Process "https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-kubernetes-release-calendar"
return
}

az aks get-versions --location $location --output table
}

Expand Down

0 comments on commit f9ebfae

Please sign in to comment.