Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92d809a4d0 | ||
|
|
0515fd7990 |
@@ -8,7 +8,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: linux-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: linux-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
@@ -448,6 +448,7 @@ type FetchTaskResponse struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
RequestBandwidthTest bool `protobuf:"varint,3,opt,name=request_bandwidth_test,json=requestBandwidthTest,proto3" json:"request_bandwidth_test,omitempty"` // Request runner to perform bandwidth test
|
||||
RequestCleanup bool `protobuf:"varint,4,opt,name=request_cleanup,json=requestCleanup,proto3" json:"request_cleanup,omitempty"` // Request runner to perform disk cleanup
|
||||
Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
|
||||
TasksVersion int64 `protobuf:"varint,2,opt,name=tasks_version,json=tasksVersion,proto3" json:"tasks_version,omitempty"` // Gitea informs the Runner of the latest version of tasks through `tasks_version`.
|
||||
}
|
||||
@@ -491,6 +492,13 @@ func (x *FetchTaskResponse) GetRequestBandwidthTest() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *FetchTaskResponse) GetRequestCleanup() bool {
|
||||
if x != nil {
|
||||
return x.RequestCleanup
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *FetchTaskResponse) GetTask() *Task {
|
||||
if x != nil {
|
||||
return x.Task
|
||||
|
||||
Reference in New Issue
Block a user