Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa874cf

Browse files
authored
Improve error report for invalid action.yml (actions#3106)
1 parent bf0e766 commit fa874cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Runner.Worker/ActionManifestManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public ActionDefinitionData Load(IExecutionContext executionContext, string mani
144144
executionContext.Error(error.Message);
145145
}
146146

147-
throw new ArgumentException($"Fail to load {fileRelativePath}");
147+
throw new ArgumentException($"Failed to load {fileRelativePath}");
148148
}
149149

150150
if (actionDefinition.Execution == null)

src/Test/L0/Worker/ActionManifestManagerL0.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public void Load_CompositeActionNoUsing()
757757

758758
//Assert
759759
var err = Assert.Throws<ArgumentException>(() => actionManifest.Load(_ec.Object, action_path));
760-
Assert.Contains($"Fail to load {action_path}", err.Message);
760+
Assert.Contains($"Failed to load {action_path}", err.Message);
761761
_ec.Verify(x => x.AddIssue(It.Is<Issue>(s => s.Message.Contains("Missing 'using' value. 'using' requires 'composite', 'docker', 'node12', 'node16' or 'node20'.")), It.IsAny<ExecutionContextLogOptions>()), Times.Once);
762762
}
763763
finally

0 commit comments

Comments
 (0)