mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-08 16:20:29 +00:00
Inject version when building and report version to Gitea via log and header (#43)
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]>
This commit is contained in:
1 parent
ebcf341de7
commit
0d71463662
9 files changed
+24
-13
No files matched your search
+3
-2
@@ -4,8 +4,9 @@
|
||||
package core
|
||||
|
||||
const (
|
||||
UUIDHeader = "x-runner-uuid"
|
||||
TokenHeader = "x-runner-token"
|
||||
UUIDHeader = "x-runner-uuid"
|
||||
TokenHeader = "x-runner-token"
|
||||
VersionHeader = "x-runner-version"
|
||||
)
|
||||
|
||||
// Runner struct
|
||||
|
||||
Reference in new issue
Block a user