Skip to content

Commit a32055f

Browse files
authored
💄 style(ci): update naming for release ring (#2836)
- change "Release" to "Production" for clarity - adjust parameter spacing for consistency
2 parents b7e8496 + 015d12c commit a32055f

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
$RunDocsRelease = 'false'
118118
switch ($Env:GitVersion_PreReleaseLabel) {
119119
"" {
120-
$Ring = "Release";
120+
$Ring = "Production";
121121
$WingetApplicationId = "nkdagility.azure-devops-migration-tools";
122122
$docs_deploy_folder = "./azure-devops-migration-tools/"
123123
$docs_baseURL = ""
@@ -430,7 +430,7 @@ jobs:
430430
id: release-options
431431
shell: pwsh
432432
run: |
433-
if ($Env:nkdAgility_Ring -eq 'Release') {
433+
if ($Env:nkdAgility_Ring -eq 'Production') {
434434
echo "discussion_category_name=Releases" >> $env:GITHUB_OUTPUT
435435
}
436436
- name: Release
@@ -444,7 +444,7 @@ jobs:
444444
tag_name: v${{ needs.Setup.outputs.GitVersion_SemVer }}
445445
name: v${{ needs.Setup.outputs.GitVersion_SemVer }} (${{ needs.Setup.outputs.nkdAgility_Ring }})
446446
token: ${{ steps.app-token.outputs.token }}
447-
prerelease: ${{ needs.Setup.outputs.nkdAgility_Ring != 'Release' }}
447+
prerelease: ${{ needs.Setup.outputs.nkdAgility_Ring != 'Production' }}
448448
discussion_category_name: ${{ steps.release-options.outputs.discussion_category_name }}
449449
draft: ${{ needs.Setup.outputs.nkdAgility_Ring == 'Canary' }}
450450
body: |
@@ -490,7 +490,7 @@ jobs:
490490
name: "Release to Marketplace"
491491
runs-on: ubuntu-latest
492492
needs: [Setup, GitHubRelease]
493-
if: ${{ success() && ( needs.Setup.outputs.nkdAgility_Ring == 'Release' ) }}
493+
if: ${{ success() && ( needs.Setup.outputs.nkdAgility_Ring == 'Production' ) }}
494494
steps:
495495
- name: Checkout
496496
uses: actions/checkout@v4

build/releaseWingetPackage.ps1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
#>
44
param (
55
# height of largest column without top bar
6-
[Parameter(Mandatory=$true)]
6+
[Parameter(Mandatory = $true)]
77
[string]$version,
88

99
# name of the releaseTag
10-
[Parameter(Mandatory=$true)]
10+
[Parameter(Mandatory = $true)]
1111
[string]$ring,
1212

1313
# GH_TOKEN
14-
[Parameter(Mandatory=$true)]
14+
[Parameter(Mandatory = $true)]
1515
[string]$GH_TOKEN
1616

1717
)
@@ -35,18 +35,18 @@ $wigetPackageId = "nkdAgility.AzureDevOpsMigrationTools"
3535

3636
Write-Host "Winget Create with $wigetPackageId"
3737
switch ($ring) {
38-
"Preview" {
39-
$wigetPackageId = "$wigetPackageId.Preview"
38+
"Preview" {
39+
$wigetPackageId = "$wigetPackageId.Preview"
4040
./wingetcreate.exe update --submit --token $GH_TOKEN --urls $installURL --version $version $wigetPackageId
41-
}
42-
"Release" {
43-
$wigetPackageId = "nkdAgility.AzureDevOpsMigrationTools"
41+
}
42+
"Production" {
43+
$wigetPackageId = "nkdAgility.AzureDevOpsMigrationTools"
4444
./wingetcreate.exe update --submit --token $GH_TOKEN --urls $installURL --version $version $wigetPackageId
45-
}
46-
default {
47-
$wigetPackageId = "nkdAgility.AzureDevOpsMigrationTools.Canary"
45+
}
46+
default {
47+
$wigetPackageId = "nkdAgility.AzureDevOpsMigrationTools.Canary"
4848
Write-Host "We dont ship canary builds!"
49-
}
49+
}
5050
}
5151

5252
Write-Host "Deployed : $wigetPackageId"

0 commit comments

Comments
 (0)