Zettat123
|
1596e4b1fd
|
Fix potential log panic (#82)
If a job uses a [reusable workflow](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-of-jobsjob_iduses), the job's steps sequence will be empty.
But in log reporter, we don't check the length of `r.state.Steps`, which may cause panic.
``` go
if v, ok := entry.Data["stepNumber"]; ok {
if v, ok := v.(int); ok {
step = r.state.Steps[v]
}
}
```
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/82
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
|
2023-03-28 11:49:09 +08:00 |
sillyguodong
|
552dbcdda9
|
Add copyright header and gitea-vet (#29)
Add copyright header
Co-authored-by: sillyguodong <gedong_1994@163.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/29
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io>
Co-authored-by: sillyguodong <sillyguodong@noreply.gitea.io>
Co-committed-by: sillyguodong <sillyguodong@noreply.gitea.io>
|
2023-02-28 18:44:46 +08:00 |
Jason Song
|
6d2200b3d6
|
Rename to actions (#7)
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/7
|
2022-12-06 16:37:38 +08:00 |
Jason Song
|
0cbdbd36b6
|
Trim newline in log message (#6)
Co-authored-by: Jason Song <i@wolfogre.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/6
|
2022-12-02 16:07:23 +08:00 |
Jason Song
|
44988db9f8
|
chore: replace with code.gitea.io/bots-proto-go
|
2022-11-24 15:38:15 +08:00 |
Jason Song
|
ab4e06f977
|
feat: support post step log
|
2022-11-24 15:38:09 +08:00 |
Jason Song
|
d650bae0b6
|
feat: replace ciphertext in log
|
2022-11-24 15:37:50 +08:00 |
Bo-Yi.Wu
|
2442cdd8ad
|
fix(runner): check task state field exist.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
|
2022-11-24 15:37:45 +08:00 |
Bo-Yi.Wu
|
08c94bb564
|
chore(runner): cancel task if get the cancel from server
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
|
2022-11-24 15:37:44 +08:00 |
Jason Song
|
2f879c41c4
|
chore: remove tracing codes
|
2022-11-24 15:37:42 +08:00 |
Jason Song
|
41b5fa6b55
|
fix: update step result
|
2022-11-24 15:37:41 +08:00 |
Bo-Yi Wu
|
7bebd2bbad
|
chore(runner): update runner status when start job
|
2022-11-24 15:37:34 +08:00 |
Bo-Yi.Wu
|
82431d8e11
|
chore(runner): support update log and task
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
|
2022-11-24 15:37:21 +08:00 |