mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-16 14:56:16 +01:00
66632c4958
Fixes #28853 Needs both https://gitea.com/gitea/act_runner/pulls/473 and https://gitea.com/gitea/act_runner/pulls/471 on the runner side and patched `actions/upload-artifact@v4` / `actions/download-artifact@v4`, like `christopherhx/gitea-upload-artifact@v4` and `christopherhx/gitea-download-artifact@v4`, to not return errors due to GHES not beeing supported yet. (cherry picked from commit a53d268aca87a281aadc2246541f8749eddcebed)
73 lines
1.7 KiB
Protocol Buffer
73 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
import "google/protobuf/wrappers.proto";
|
|
|
|
package github.actions.results.api.v1;
|
|
|
|
message CreateArtifactRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
google.protobuf.Timestamp expires_at = 4;
|
|
int32 version = 5;
|
|
}
|
|
|
|
message CreateArtifactResponse {
|
|
bool ok = 1;
|
|
string signed_upload_url = 2;
|
|
}
|
|
|
|
message FinalizeArtifactRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
int64 size = 4;
|
|
google.protobuf.StringValue hash = 5;
|
|
}
|
|
|
|
message FinalizeArtifactResponse {
|
|
bool ok = 1;
|
|
int64 artifact_id = 2;
|
|
}
|
|
|
|
message ListArtifactsRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
google.protobuf.StringValue name_filter = 3;
|
|
google.protobuf.Int64Value id_filter = 4;
|
|
}
|
|
|
|
message ListArtifactsResponse {
|
|
repeated ListArtifactsResponse_MonolithArtifact artifacts = 1;
|
|
}
|
|
|
|
message ListArtifactsResponse_MonolithArtifact {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
int64 database_id = 3;
|
|
string name = 4;
|
|
int64 size = 5;
|
|
google.protobuf.Timestamp created_at = 6;
|
|
}
|
|
|
|
message GetSignedArtifactURLRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
}
|
|
|
|
message GetSignedArtifactURLResponse {
|
|
string signed_url = 1;
|
|
}
|
|
|
|
message DeleteArtifactRequest {
|
|
string workflow_run_backend_id = 1;
|
|
string workflow_job_run_backend_id = 2;
|
|
string name = 3;
|
|
}
|
|
|
|
message DeleteArtifactResponse {
|
|
bool ok = 1;
|
|
int64 artifact_id = 2;
|
|
}
|