Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 07a15f9

Browse files
authored
Terminate the 'StartsWith' string in the badge existence check. (#9049)
* Terminate the 'StartsWith' string in the badge existence check. * Replace "string.Concat"
1 parent 3356157 commit 07a15f9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

build/publish/FinishBuild.targets

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
DependsOnTargets="CheckIfAllBuildsHavePublished;
66
FinalizeBuild" />
77

8-
<Target Name="CheckIfAllBuildsHavePublished">
8+
<Target Name="CheckIfAllBuildsHavePublished"
9+
DependsOnTargets="SetBadgeProps">
910
<CheckIfAllBuildsHavePublished AccountKey="$(ArtifactCloudDropAccessToken)"
1011
AccountName="$(ArtifactCloudDropAccountName)"
1112
ContainerName="$(ArtifactContainerName)"

build_projects/dotnet-cli-build/CheckIfAllBuildsHavePublished.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ public override bool Execute()
5555
{ "linux_x64", false },
5656
{ "rhel.6_x64", false },
5757
{ "alpine.3.6_x64", false },
58-
{ "all_linux_distros_native_installer", false},
59-
{ "linux_arm", false},
60-
{ "linux_arm64", false}
58+
{ "all_linux_distros_native_installer", false },
59+
{ "linux_arm", false },
60+
{ "linux_arm64", false }
6161
};
6262

6363
if (!badges.ContainsKey(VersionBadgeMoniker))
@@ -71,7 +71,7 @@ public override bool Execute()
7171
string name = Path.GetFileName(file);
7272
foreach (string img in badges.Keys)
7373
{
74-
if ((name.StartsWith($"{img}")) && (name.EndsWith(".svg")))
74+
if ((name.StartsWith($"{img}_")) && (name.EndsWith(".svg")))
7575
{
7676
badges[img] = true;
7777
break;

0 commit comments

Comments
 (0)