forgejo-runner/cmd
sillyguodong 0445675a10
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.
![image](/attachments/e25efbd3-79b3-49a5-b93f-42646d42c707)

2. In `Actions` UI:
![image](/attachments/36c57470-2a1d-4796-9eb0-de3988ab88e1)

3. Set request header in http client interceptor.

Co-authored-by: sillyguodong <gedong_1994@163.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/43
Reviewed-by: delvh <dev.lh@web.de>
Reviewed-by: Jason Song <i@wolfogre.com>
Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io>
Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io>
2023-03-16 16:53:44 +01:00
..
cmd.go Inject version when building and report version to Gitea via log and header (#43) 2023-03-16 16:53:44 +01:00
daemon.go Inject version when building and report version to Gitea via log and header (#43) 2023-03-16 16:53:44 +01:00
exec.go s/gitea/forgejo/ for exec 2023-03-08 15:01:49 +01:00
register.go Inject version when building and report version to Gitea via log and header (#43) 2023-03-16 16:53:44 +01:00
register_test.go feat: don't require docker (#16) 2023-01-27 20:42:02 +08:00