From: Dan Fandrich Date: Fri, 9 Feb 2024 22:38:58 +0000 (-0800) Subject: scripts: Fix cijobs.pl for Azure and GHA X-Git-Tag: curl-8_7_0~184 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=922091c05cc2216a49dab955d990bf34edbc5ac5;p=thirdparty%2Fcurl.git scripts: Fix cijobs.pl for Azure and GHA The spacing in the yaml files changed. --- diff --git a/scripts/cijobs.pl b/scripts/cijobs.pl index 4c047973a9..150e2cb8f3 100755 --- a/scripts/cijobs.pl +++ b/scripts/cijobs.pl @@ -89,7 +89,7 @@ sub githubactions { $job{'install'} = $1; } elsif($m >= 0) { - if($_ =~ /^ - name: (.*)/) { + if($_ =~ /^ - name: (.*)/) { # matrix job #print "name: $1\n"; $job{'name'} = $1; @@ -165,7 +165,7 @@ sub azurepipelines { $job{'file'} = ".azure-pipelines.yml"; $job{'service'} = "azure"; while() { - if($_ =~ /^ vmImage: (.*)/) { + if($_ =~ /^ vmImage: (.*)/) { my $i = $1; if($i =~ /ubuntu/) { $os = "linux"; @@ -174,7 +174,7 @@ sub azurepipelines { $os = "windows"; } } - elsif($_ =~ /^- stage: (.*)/) { + elsif($_ =~ /^ - stage: (.*)/) { my $topname = $1; if($topname !~ /(windows|linux)/) { $job{'name'} = $topname; @@ -194,7 +194,7 @@ sub azurepipelines { $j = 0; } elsif($m >= 0) { - if($_ =~ /^ name: (.*)/) { + if($_ =~ /^ name: (.*)/) { # single matrix list entry job $j++; $job{'name'} = $1; @@ -205,7 +205,7 @@ sub azurepipelines { # disable matrix mode $m = -1; } - elsif($_ =~ /^ configure: (.*)/) { + elsif($_ =~ /^ configure: (.*)/) { $job{'configure'} = $1; $job{'line'}=$line; $job{'os'}=$os;