diff --git a/.github/workflows/test-connectors.yml b/.github/workflows/test-connectors.yml index 564a309ed..161571f2b 100644 --- a/.github/workflows/test-connectors.yml +++ b/.github/workflows/test-connectors.yml @@ -7,15 +7,15 @@ on: description: Ballerina Docker version required: true default: 'nightly' + artifact_id: + description: Artifact Id of the custom Ballerina distribution + required: false + default: '' client_method: description: Expected Client Method Type required: true default: 'remote' options: ['remote', 'resource'] - artifact_id: - description: Artifact Id of the custom Ballerina distribution - required: false - default: '' connector_list: description: Comma separated list of connectors to regenerate required: false diff --git a/build.gradle b/build.gradle index f1564553e..04a4da8a7 100644 --- a/build.gradle +++ b/build.gradle @@ -169,7 +169,7 @@ task testOpenAPITool { } } -task generateNbuildLatestOpenAPIConnectors { +task generateAndBuildLatestOpenAPIConnectors { if (testConnectorGeneration) { println "Task: Re-generate and build connectors..." @@ -248,9 +248,9 @@ task generateNbuildLatestOpenAPIConnectors { def constructSummaryReport(ballerinaDistributionPath, totalConnectors, generationFailedConnectors, compilationFailedConnectors, execConnectors, clientMethod) { def summary = "# Summary \n\n" - summary += "Date and Time: ${new Date()}\n" + summary += "Timestamp: ${new Date()}\n" summary += "Ballerina Version: ${getBallerinaVersion(ballerinaDistributionPath).toString()}\n" - summary += "Client Methid Type: ${clientMethod}\n" + summary += "Client Method Type: ${clientMethod}\n" summary += "Total Connectors in the Repository: ${totalConnectors}\n" summary += "Number of Connectors Executed: ${execConnectors}\n\n" @@ -269,13 +269,12 @@ def constructSummaryReport(ballerinaDistributionPath, totalConnectors, generatio } } } else { - summary += "All connectors executed successfully.\n" + summary += "All connectors are regenerated and compiled successfully.\n" } - + return summary } - def getBallerinaVersion(ballerinaDistributionPath) { def command = ballerinaDistributionPath + "/bin/bal -v" def process = command.execute()