From af9202bd8d15c6f4b0f11bfaf2b34e86a28d5cf7 Mon Sep 17 00:00:00 2001 From: Ethan Chiu Date: Wed, 8 Jul 2020 14:43:03 -0400 Subject: [PATCH] Fix logic for trimming manifestfile path --- src/Runner.Worker/ActionManifestManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runner.Worker/ActionManifestManager.cs b/src/Runner.Worker/ActionManifestManager.cs index 7fb1f4f1b..759cd36ff 100644 --- a/src/Runner.Worker/ActionManifestManager.cs +++ b/src/Runner.Worker/ActionManifestManager.cs @@ -61,7 +61,7 @@ namespace GitHub.Runner.Worker // we can just remove the # of characters from the fileName according to the length of the basePath string basePath = HostContext.GetDirectory(WellKnownDirectory.Actions); string fileRelativePath = manifestFile; - if (manifestFile.Length > basePath.Length + 1) + if (manifestFile.Contains(basePath)) { fileRelativePath = manifestFile.Remove(0, basePath.Length + 1); }