Support outputs/needs #5

Merged
wolfogre merged 3 commits from feature/needs into main 2023-04-12 06:40:39 +00:00

View File

@ -24,10 +24,12 @@ message FetchTaskResponse {
message UpdateTaskRequest {
TaskState state = 1;
map<string, string> outputs = 2; // The outputs of the task. Since the outputs may be large, the client does not need to send all outputs every time, only the unsent outputs.
}
message UpdateTaskResponse {
TaskState state = 1;
repeated string sent_outputs = 2; // The keys of the outputs that have been sent, not only the ones that have been sent this time, but also those that have been sent before.
}
message UpdateLogRequest {
@ -75,7 +77,14 @@ message Task {
optional bytes workflow_payload = 2; // The content of the expanded workflow yaml file.
optional google.protobuf.Struct context = 3; // See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context .
map<string, string> secrets = 4; // See https://docs.github.com/en/actions/learn-github-actions/contexts#secrets-context .
string machine = 5;
string machine = 5 [deprecated = true]; // Unused.
map<string, TaskNeed> needs = 6; // See https://docs.github.com/en/actions/learn-github-actions/contexts#needs-context .
}
// TaskNeed represents a task need.
message TaskNeed {
map<string, string> outputs = 1; // The set of outputs of a job that the current job depends on.
Result result = 2; // The result of a job that the current job depends on. Possible values are success, failure, cancelled, or skipped.
}
// TaskState represents the state of a task.