示例#1
0
        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);
        }
示例#2
0
        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);
        }