diff options
author | sillyguodong <33891828+sillyguodong@users.noreply.github.com> | 2023-03-20 10:19:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 22:19:40 -0400 |
commit | 371520d7ab5c018c380f8f7981a8be7d40a01f72 (patch) | |
tree | 084dd96049824c148aee3139a48e627d0281f37b /models/actions | |
parent | af3711100a7dc73e8c2482667bbccdcd049e25e0 (diff) | |
download | gitea-371520d7ab5c018c380f8f7981a8be7d40a01f72.tar.gz gitea-371520d7ab5c018c380f8f7981a8be7d40a01f72.zip |
Display the version of runner in the runner list (#23490)
Close: #23489
### Change
1. Add version column to action_runner table.
2. Read the runner version from the request header, and update it in DB.
3. Display version in runner list
### Screenshot

Diffstat (limited to 'models/actions')
-rw-r--r-- | models/actions/runner.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/actions/runner.go b/models/actions/runner.go index 4efe105b08..cce8b4f443 100644 --- a/models/actions/runner.go +++ b/models/actions/runner.go @@ -25,6 +25,7 @@ type ActionRunner struct { ID int64 UUID string `xorm:"CHAR(36) UNIQUE"` Name string `xorm:"VARCHAR(255)"` + Version string `xorm:"VARCHAR(64)"` OwnerID int64 `xorm:"index"` // org level runner, 0 means system Owner *user_model.User `xorm:"-"` RepoID int64 `xorm:"index"` // repo level runner, if orgid also is zero, then it's a global |