diff --git a/docs/ActionWorkflowResponse.md b/docs/ActionWorkflowResponse.md
new file mode 100644
index 0000000..f30074b
--- /dev/null
+++ b/docs/ActionWorkflowResponse.md
@@ -0,0 +1,7 @@
+# ActionWorkflowResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**totalCount** | **Long** | | [optional]
+**workflows** | [**List<ActionWorkflow>**](ActionWorkflow.md) | | [optional]
diff --git a/docs/RepositoryApi.md b/docs/RepositoryApi.md
index ee93976..de12eaf 100644
--- a/docs/RepositoryApi.md
+++ b/docs/RepositoryApi.md
@@ -653,7 +653,7 @@ Name | Type | Description | Notes
# **actionsListRepositoryWorkflows**
-> List<ActionWorkflow> actionsListRepositoryWorkflows(owner, repo)
+> ActionWorkflowResponse actionsListRepositoryWorkflows(owner, repo)
List repository workflows
@@ -712,7 +712,7 @@ RepositoryApi apiInstance = new RepositoryApi();
String owner = "owner_example"; // String | owner of the repo
String repo = "repo_example"; // String | name of the repo
try {
- List result = apiInstance.actionsListRepositoryWorkflows(owner, repo);
+ ActionWorkflowResponse result = apiInstance.actionsListRepositoryWorkflows(owner, repo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RepositoryApi#actionsListRepositoryWorkflows");
@@ -729,7 +729,7 @@ Name | Type | Description | Notes
### Return type
-[**List<ActionWorkflow>**](ActionWorkflow.md)
+[**ActionWorkflowResponse**](ActionWorkflowResponse.md)
### Authorization
diff --git a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
index 62a054b..a2e747a 100644
--- a/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
+++ b/src/main/java/org/gitnex/tea4j/v2/apis/RepositoryApi.java
@@ -13,6 +13,7 @@ import org.gitnex.tea4j.v2.models.ActionVariable;
import org.gitnex.tea4j.v2.models.ActionWorkflow;
import org.gitnex.tea4j.v2.models.ActionWorkflowJob;
import org.gitnex.tea4j.v2.models.ActionWorkflowJobsResponse;
+import org.gitnex.tea4j.v2.models.ActionWorkflowResponse;
import org.gitnex.tea4j.v2.models.ActionWorkflowRun;
import org.gitnex.tea4j.v2.models.Activity;
import org.gitnex.tea4j.v2.models.AddCollaboratorOption;
@@ -186,10 +187,10 @@ public interface RepositoryApi {
*
* @param owner owner of the repo (required)
* @param repo name of the repo (required)
- * @return Call<List<ActionWorkflow>>
+ * @return Call<ActionWorkflowResponse>
*/
@GET("repos/{owner}/{repo}/actions/workflows")
- Call> actionsListRepositoryWorkflows(
+ Call actionsListRepositoryWorkflows(
@retrofit2.http.Path("owner") String owner, @retrofit2.http.Path("repo") String repo);
/**
diff --git a/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowResponse.java b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowResponse.java
new file mode 100644
index 0000000..43cde70
--- /dev/null
+++ b/src/main/java/org/gitnex/tea4j/v2/models/ActionWorkflowResponse.java
@@ -0,0 +1,117 @@
+/*
+ * Gitea API
+ * This documentation describes the Gitea API.
+ *
+ * OpenAPI spec version: {{.SwaggerAppVer}}
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package org.gitnex.tea4j.v2.models;
+
+import com.google.gson.annotations.SerializedName;
+import io.swagger.v3.oas.annotations.media.Schema;
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+
+/** ActionWorkflowResponse returns a ActionWorkflow */
+@Schema(description = "ActionWorkflowResponse returns a ActionWorkflow")
+public class ActionWorkflowResponse implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ @SerializedName("total_count")
+ private Long totalCount = null;
+
+ @SerializedName("workflows")
+ private List workflows = null;
+
+ public ActionWorkflowResponse totalCount(Long totalCount) {
+ this.totalCount = totalCount;
+ return this;
+ }
+
+ /**
+ * Get totalCount
+ *
+ * @return totalCount
+ */
+ @Schema(description = "")
+ public Long getTotalCount() {
+ return totalCount;
+ }
+
+ public void setTotalCount(Long totalCount) {
+ this.totalCount = totalCount;
+ }
+
+ public ActionWorkflowResponse workflows(List workflows) {
+ this.workflows = workflows;
+ return this;
+ }
+
+ public ActionWorkflowResponse addWorkflowsItem(ActionWorkflow workflowsItem) {
+ if (this.workflows == null) {
+ this.workflows = new ArrayList<>();
+ }
+ this.workflows.add(workflowsItem);
+ return this;
+ }
+
+ /**
+ * Get workflows
+ *
+ * @return workflows
+ */
+ @Schema(description = "")
+ public List getWorkflows() {
+ return workflows;
+ }
+
+ public void setWorkflows(List workflows) {
+ this.workflows = workflows;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ ActionWorkflowResponse actionWorkflowResponse = (ActionWorkflowResponse) o;
+ return Objects.equals(this.totalCount, actionWorkflowResponse.totalCount)
+ && Objects.equals(this.workflows, actionWorkflowResponse.workflows);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(totalCount, workflows);
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class ActionWorkflowResponse {\n");
+
+ sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n");
+ sb.append(" workflows: ").append(toIndentedString(workflows)).append("\n");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ /**
+ * Convert the given object to string with each line indented by 4 spaces (except the first line).
+ */
+ private String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}