public static string Serialize(GitHubActionsRoot gitHubActions, List <string> variableList = null, string matrixVariableName = null) { string yaml = GenericObjectSerialization.SerializeYaml <GitHubActionsRoot>(gitHubActions); yaml = ProcessGitHubActionYAML(yaml, variableList, matrixVariableName); return(yaml); }
public static string SerializeJob(GitHubActions.Job gitHubActionJob, List <string> variableList = null) { string yaml = GenericObjectSerialization.SerializeYaml <GitHubActions.Job>(gitHubActionJob); yaml = ProcessGitHubActionYAML(yaml, variableList); yaml = StepsPostProcessing(yaml); return(yaml); }