.yml cleanup: lower true and false (#4757)

This commit is contained in:
Kyaw Thant 2024-09-27 14:03:36 -07:00 коммит произвёл GitHub
Родитель b7a30a4c23
Коммит 484a8e3f28
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
14 изменённых файлов: 71 добавлений и 71 удалений

6
.github/policies/resourceManagement.yml поставляемый
Просмотреть файл

@ -114,7 +114,7 @@ configuration:
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
issueAuthor: true
- hasLabel:
label: needs-author-feedback
- isAssignedToSomeone
@ -131,7 +131,7 @@ configuration:
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
issueAuthor: true
- hasLabel:
label: needs-author-feedback
- not: isAssignedToSomeone
@ -161,7 +161,7 @@ configuration:
- isAction:
action: Created
- isActivitySender:
issueAuthor: True
issueAuthor: true
- hasLabel:
label: needs-author-feedback
- isOpen

Просмотреть файл

@ -1,13 +1,13 @@
parameters:
- name: "SignOutput"
type: boolean
default: False
default: false
- name: "IsOneBranch"
type: boolean
default: True
default: true
- name: runStaticAnalysis
type: boolean
default: True
default: true
stages:
- stage: Build

Просмотреть файл

@ -1,13 +1,13 @@
parameters:
- name: "SignOutput"
type: boolean
default: False
default: false
- name: "IsOneBranch"
type: boolean
default: True
default: true
- name: runStaticAnalysis
type: boolean
default: True
default: true
steps:
- task: NuGetToolInstaller@1
@ -32,7 +32,7 @@ steps:
filePath: 'BuildAll.ps1'
arguments: -AzureBuildStep "BuildAnyCPU"
- ${{ if eq(parameters.runStaticAnalysis, 'True') }}:
- ${{ if eq(parameters.runStaticAnalysis, 'true') }}:
- task: SDLNativeRules@3
displayName: Run PREfast SDL Native Rules
inputs:

Просмотреть файл

@ -1,13 +1,13 @@
parameters:
- name: "SignOutput"
type: boolean
default: False
default: false
- name: "IsOneBranch"
type: boolean
default: True
default: true
- name: runStaticAnalysis
type: boolean
default: True
default: true
steps:
- task: NuGetToolInstaller@1
@ -70,7 +70,7 @@ steps:
filePath: 'BuildAll.ps1'
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildBinaries"
- ${{ if eq(parameters.runStaticAnalysis, 'True') }}:
- ${{ if eq(parameters.runStaticAnalysis, 'true') }}:
- task: SDLNativeRules@3
displayName: Run PREfast SDL Native Rules
condition: and(succeeded(), eq(variables['buildConfiguration'], 'Release'), eq(variables['buildPlatform'], 'x64'))

Просмотреть файл

@ -1,22 +1,22 @@
parameters:
- name: SignOutput
type: boolean
default: False
default: false
- name: IsOfficial
type: boolean
default: False
default: false
- name: IsOneBranch
type: boolean
default: False
default: false
- name: runStaticAnalysis
type: boolean
default: False
default: false
- name: UseCurrentBuild
type: boolean
default: False
default: false
steps:
- ${{ if eq(parameters.UseCurrentBuild, 'True') }}:
- ${{ if eq(parameters.UseCurrentBuild, 'true') }}:
- task: DownloadPipelineArtifact@2
displayName: 'Download WindowsAppSDK From Current Build'
inputs:
@ -210,10 +210,10 @@ steps:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
msbuildArgs: /binaryLogger:$(ob_outputDirectory)\binlogs\WindowsAppRuntimeInstall.$(buildPlatform).$(buildConfiguration).binlog
${{ if eq( parameters.runStaticAnalysis, 'True') }}:
${{ if eq( parameters.runStaticAnalysis, 'true') }}:
createLogFile: true
- ${{ if eq(parameters.runStaticAnalysis, 'True') }}:
- ${{ if eq(parameters.runStaticAnalysis, 'true') }}:
- task: SDLNativeRules@3
condition: and(succeeded(), eq(variables['buildConfiguration'], 'Release'), eq(variables['buildPlatform'], 'x64'))
displayName: Run the PREfast SDL Native Rules

Просмотреть файл

@ -1,13 +1,13 @@
parameters:
- name: "SignOutput"
type: boolean
default: False
default: false
- name: "IsOneBranch"
type: boolean
default: True
default: true
- name: runStaticAnalysis
type: boolean
default: True
default: true
steps:
- template: WindowsAppSDK-SetupBuildEnvironment-Steps.yml
@ -29,7 +29,7 @@ steps:
filePath: 'BuildAll.ps1'
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildMRT"
- ${{ if eq(parameters.runStaticAnalysis, 'True') }}:
- ${{ if eq(parameters.runStaticAnalysis, 'true') }}:
- task: SDLNativeRules@3
displayName: Run PREfast SDL Native Rules
condition: and(succeeded(), eq(variables['buildPlatform'], 'x64'), eq(variables['buildConfiguration'], 'Release'))

Просмотреть файл

@ -1,19 +1,19 @@
parameters:
- name: SignOutput
type: boolean
default: False
default: false
- name: IsOneBranch
type: boolean
default: False
default: false
- name: IsOfficial
type: boolean
default: False
default: false
- name: runStaticAnalysis
type: boolean
default: True
default: true
- name: UseCurrentBuild
type: boolean
default: False
default: false
- name: OptionalVSIXVersion
# if blank, the project template will select the version matching the Windows App SDK
# nuget. If provided, it should be a 4-part dotted version ('1.2.3.4')
@ -21,10 +21,10 @@ parameters:
default: 'default'
- name: EnableExperimentalVSIXFeatures
type: boolean
default: False
default: false
steps:
- ${{ if eq(parameters.UseCurrentBuild, 'True') }}:
- ${{ if eq(parameters.UseCurrentBuild, 'true') }}:
- task: DownloadPipelineArtifact@2
displayName: 'Download WindowsAppSDK From Current Build'
inputs:
@ -107,10 +107,10 @@ steps:
platform: 'Any CPU'
configuration: '$(buildConfiguration)'
msBuildArgs: '/p:OptionalVSIXVersion="${{ parameters.OptionalVSIXVersion }}" /p:WindowsAppSDKVersion="$(WindowsAppSDKPackageVersion)" /p:EnableExperimentalVSIXFeatures="${{ parameters.EnableExperimentalVSIXFeatures }}" /binaryLogger:$(ob_outputDirectory)\binlogs\StandaloneVSIX.binlog'
${{ if eq( parameters.runStaticAnalysis, 'True') }}:
${{ if eq( parameters.runStaticAnalysis, 'true') }}:
createLogFile: true
- ${{ if eq(parameters.runStaticAnalysis, 'True') }}:
- ${{ if eq(parameters.runStaticAnalysis, 'true') }}:
- task: SDLNativeRules@3
displayName: PREfast SDL Native Rules for Standalone WindowsAppSDK.Extension.sln
condition: and(succeeded(), eq(variables['buildConfiguration'], 'Release'))
@ -139,10 +139,10 @@ steps:
platform: 'Any CPU'
configuration: '$(buildConfiguration)'
msBuildArgs: '/restore /p:OptionalVSIXVersion="${{ parameters.OptionalVSIXVersion }}" /p:WindowsAppSDKVersion="$(WindowsAppSDKPackageVersion)" /p:EnableExperimentalVSIXFeatures="${{ parameters.EnableExperimentalVSIXFeatures }}" /p:Deployment="Component" /binaryLogger:$(ob_outputDirectory)\binlogs\ComponentVSIX.binlog'
${{ if eq( parameters.runStaticAnalysis, 'True') }}:
${{ if eq( parameters.runStaticAnalysis, 'true') }}:
createLogFile: true
- ${{ if eq(parameters.runStaticAnalysis, 'True') }}:
- ${{ if eq(parameters.runStaticAnalysis, 'true') }}:
- task: SDLNativeRules@3
displayName: PREfast SDL Native Rules for Component WindowsAppSDK.Extension.sln
condition: and(succeeded(), eq(variables['buildConfiguration'], 'Release'))
@ -162,22 +162,22 @@ steps:
scanType: 'Register'
failOnAlert: true
- ${{ if eq(parameters.SignOutput, False) }}:
- ${{ if eq(parameters.SignOutput, false) }}:
- task: CopyFiles@2
displayName: 'Stage unsigned VSIX files for publishing'
inputs:
SourceFolder: '$(FoundationRepoPath)dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)'
Contents: '**/WindowsAppSDK.*.vsix'
flattenFolders: True
flattenFolders: true
TargetFolder: '$(ob_outputDirectory)\VSIX'
- ${{ if eq(parameters.SignOutput, True) }}:
- ${{ if eq(parameters.SignOutput, true) }}:
- task: CopyFiles@2
displayName: 'Stage unsigned VSIX files for signing'
inputs:
SourceFolder: '$(FoundationRepoPath)dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)'
Contents: '**/WindowsAppSDK.*.vsix'
flattenFolders: True
flattenFolders: true
TargetFolder: '$(Agent.TempDirectory)/UnsignedVSIX'
- template: WindowsAppSDK-SignPackageContents-steps.yml
@ -205,7 +205,7 @@ steps:
inputs:
SourceFolder: '$(FoundationRepoPath)dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)'
Contents: '**/WindowsAppSDK*.pdb'
flattenFolders: True
flattenFolders: true
TargetFolder: '$(ob_outputDirectory)\symbols'
- task: CopyFiles@2
@ -213,7 +213,7 @@ steps:
inputs:
SourceFolder: '$(FoundationRepoPath)dev\VSIX\BuildOutput\obj\AnyCPU$(buildConfiguration)'
Contents: '**/WindowsAppSDK.*.Component.json'
flattenFolders: True
flattenFolders: true
TargetFolder: '$(ob_outputDirectory)'
- task: CopyFiles@2
@ -221,7 +221,7 @@ steps:
inputs:
SourceFolder: '$(FoundationRepoPath)dev\VSIX'
Contents: 'extension.manifest.json'
flattenFolders: True
flattenFolders: true
TargetFolder: '$(ob_outputDirectory)'
- task: CopyFiles@2
@ -229,7 +229,7 @@ steps:
inputs:
SourceFolder: '$(FoundationRepoPath)dev\VSIX'
Contents: 'overview.md'
flattenFolders: True
flattenFolders: true
TargetFolder: '$(ob_outputDirectory)'
- ${{ if ne(parameters.IsOneBranch, 'true') }}:

Просмотреть файл

@ -1,19 +1,19 @@
parameters:
- name: "PublishPackage"
type: boolean
default: True
default: true
- name: "SignOutput"
type: boolean
default: True
default: true
- name: "IsOneBranch"
type: boolean
default: True
default: true
- name: "IsOfficial"
type: boolean
default: False
default: false
- name: "BuildMockWindowsAppSDK"
type: boolean
default: True
default: true
stages:
- stage: Pack

Просмотреть файл

@ -1,10 +1,10 @@
parameters:
- name: "PublishToMaestro"
type: boolean
default: True
default: true
- name: "IgnoreFailures"
type: boolean
default: True
default: true
stages:
- stage: Publish
dependsOn:

Просмотреть файл

@ -1,7 +1,7 @@
parameters:
- name: "IsOneBranch"
type: boolean
default: True
default: true
steps:
- task: UseDotNet@2

Просмотреть файл

@ -21,14 +21,14 @@ stages:
- template: AzurePipelinesTemplates\WindowsAppSDK-Build-Stage.yml@self
parameters:
SignOutput: False
IsOneBranch: False
SignOutput: false
IsOneBranch: false
- template: AzurePipelinesTemplates\WindowsAppSDK-Test-Stage.yml@self
- template: AzurePipelinesTemplates\WindowsAppSDK-PackTransportPackage-Stage.yml@self
parameters:
SignOutput: False
PublishPackage: False
IsOneBranch: False
BuildMockWindowsAppSDK: False
SignOutput: false
PublishPackage: false
IsOneBranch: false
BuildMockWindowsAppSDK: false

Просмотреть файл

@ -23,17 +23,17 @@ trigger: none
parameters:
- name: "PublishToMaestro"
type: boolean
default: True
default: true
- name: "IgnoreFailures"
type: boolean
default: False
default: false
- name: "SignOutput"
type: boolean
default: True
default: true
- name: runStaticAnalysis
displayName: "Run Static Analysis (e.g., PREFast, APIScan)"
type: boolean
default: True
default: true
resources:
repositories:
@ -87,7 +87,7 @@ extends:
enabled: true
break: true
prefast:
${{ if eq(parameters.runStaticAnalysis, 'True') }}:
${{ if eq(parameters.runStaticAnalysis, 'true') }}:
enabled: true
${{ else }}:
enabled: false

Просмотреть файл

@ -23,17 +23,17 @@ trigger: none
parameters:
- name: "PublishToMaestro"
type: boolean
default: True
default: true
- name: "IgnoreFailures"
type: boolean
default: False
default: false
- name: "SignOutput"
type: boolean
default: True
default: true
- name: runStaticAnalysis
displayName: "Run Static Analysis (e.g., PREFast, APIScan)"
type: boolean
default: True
default: true
resources:
repositories:
@ -72,7 +72,7 @@ extends:
enabled: true
break: true
prefast:
${{ if eq(parameters.runStaticAnalysis, 'True') }}:
${{ if eq(parameters.runStaticAnalysis, 'true') }}:
enabled: true
${{ else }}:
enabled: false

Просмотреть файл

@ -24,7 +24,7 @@ parameters: # parameters are shown up in ADO UI in a build queue time
- name: runStaticAnalysis
displayName: "Run Static Analysis (e.g., PREFast, APIScan)"
type: boolean
default: True
default: true
resources:
repositories:
@ -64,7 +64,7 @@ extends:
enabled: true
break: true
prefast:
${{ if eq(parameters.runStaticAnalysis, 'True') }}:
${{ if eq(parameters.runStaticAnalysis, 'true') }}:
enabled: true
${{ else }}:
enabled: false