File tree Expand file tree Collapse file tree 5 files changed +19
-14
lines changed
Expand file tree Collapse file tree 5 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ name: Build Management Pack
44on :
55 # Triggers the workflow on push or pull request
66 push :
7+ branches :
8+ - ' *' # matches every branch that doesn't contain a '/'
9+ - ' */*' # matches every branch containing a single '/'
10+ - ' **' # matches every branch
11+ - ' !dev' # excludes dev
12+ - ' !main' # excludes main
713 pull_request :
814
915 # Allows you to run this workflow manually from the Actions tab
Original file line number Diff line number Diff line change 55 <RootNamespace>SCOM.Alert.Management</RootNamespace>
66 <Name>SCOM.Alert.Management</Name>
77 <ManagementPackName>SCOM.Alert.Management</ManagementPackName>
8- <Version>1.1.31.109 </Version>
8+ <Version>1.2.34.112 </Version>
99 <MpFrameworkVersion>v7.0.2</MpFrameworkVersion>
1010 <MpFrameworkProfile>OM</MpFrameworkProfile>
1111 <ProductVersion>1.1.0.0</ProductVersion>
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<Project ToolsVersion =" Current" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
33 <PropertyGroup >
4- <DeploymentNextVersion >1.1.31.110 </DeploymentNextVersion >
4+ <DeploymentNextVersion >1.2.34.113 </DeploymentNextVersion >
55 <DeploymentAutoIncrementVersion >True</DeploymentAutoIncrementVersion >
66 <DeploymentStartAction >None</DeploymentStartAction >
77 <DeploymentWebConsoleUrl />
Original file line number Diff line number Diff line change @@ -64,18 +64,17 @@ function Format-xPathExpression
6464 $Value
6565 )
6666
67- if ($Value.Contains (" '" ))
68- {
69- return " \$Value \"
70- }
71- elseif ($Value.Contains (' \' ))
72- {
73- return " "" $Value "" "
74- }
75- else
76- {
77- return $Value ;
78- }
67+ $charactersToReplace = @ {
68+ " '" = ' "'
69+ ' \' = ' \\'
70+ }
71+
72+ foreach ( $characterToReplace in $charactersToReplace.GetEnumerator () )
73+ {
74+ $Value = $Value.Replace ($characterToReplace.Key , $characterToReplace.Value )
75+ }
76+
77+ return $Value
7978}
8079
8180# Get the config file object to ensure it exists
You can’t perform that action at this time.
0 commit comments