mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-04 14:35:32 +00:00
close #42 1. Inject runner version when `make build` After building, executing command line: `./act_runner -v` or `./act_runner --version`, the version of runner is printed.  2. In `Actions` UI:  3. Set request header in http client interceptor. Co-authored-by: sillyguodong <[email protected]> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/43 Reviewed-by: delvh <[email protected]> Reviewed-by: Jason Song <[email protected]> Co-authored-by: sillyguodong <[email protected]> Co-committed-by: sillyguodong <[email protected]>
22 lines
498 B
Go
22 lines
498 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package core
|
|
|
|
const (
|
|
UUIDHeader = "x-runner-uuid"
|
|
TokenHeader = "x-runner-token"
|
|
VersionHeader = "x-runner-version"
|
|
)
|
|
|
|
// Runner struct
|
|
type Runner struct {
|
|
ID int64 `json:"id"`
|
|
UUID string `json:"uuid"`
|
|
Name string `json:"name"`
|
|
Token string `json:"token"`
|
|
Address string `json:"address"`
|
|
Insecure string `json:"insecure"`
|
|
Labels []string `json:"labels"`
|
|
}
|