2
0

2 Commits

Author SHA1 Message Date
GitCaddy Dev
92d809a4d0 fix: Use linux-latest instead of ubuntu-latest
Some checks failed
CI / build (push) Has been cancelled
Release / release (push) Has been cancelled
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-14 09:43:38 +00:00
GitCaddy Dev
0515fd7990 Add RequestCleanup field to FetchTaskResponse
Some checks failed
CI / build (push) Has been cancelled
Release / release (push) Has been cancelled
Allows the server to signal to runners that they should perform disk cleanup.
This is used when runners report low disk space in their capabilities.

🤖 Generated with Claude Code
2026-01-14 08:32:53 +00:00
3 changed files with 10 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: linux-latest
steps:
- uses: actions/checkout@v4

View File

@@ -7,7 +7,7 @@ on:
jobs:
release:
runs-on: ubuntu-latest
runs-on: linux-latest
steps:
- uses: actions/checkout@v4

View File

@@ -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