Forgejo runner - alpha release, should not be considered secure enough to deploy in production
Find a file
HesterG 048b2e630f
Fix wrong last step duration when job failed (#41)
This PR is to fix the wrong last step duration when job failed like shown in the screenshot.
The reason is because when job failed, `Fire` function did not pass in Time, and `r.state.StoppedAt` is by default set to `0001-01-01 08:05:43 +0805 LMT`, which is later on reported to gitea by `UpdateTask`, which calls `UpdateTaskByState` to update the `task.Stopped`, and `task.Stopped` is used in `FullSteps`, resulting in wrong calcaulation of last step duration.

Co-authored-by: nickname <test@123.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/act_runner/pulls/41
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: HesterG <hesterg@noreply.gitea.io>
Co-committed-by: HesterG <hesterg@noreply.gitea.io>
2023-03-08 15:07:09 +01:00
.forgejo/workflows run test from Actions 2023-03-01 00:10:02 +01:00
.gitea/workflows Enable action as CI to test/build/release (#26) 2023-02-24 17:52:04 +01:00
artifactcache fix lint error (#30) 2023-02-28 23:53:30 +01:00
client s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
cmd s/gitea/forgejo/ for exec 2023-03-08 15:01:49 +01:00
config Add runner name to log (#37) 2023-03-08 14:58:59 +01:00
core Allow request an insecure gitea server (#18) 2023-02-15 16:51:14 +08:00
engine feat: move main task logic to runtime package 2022-11-24 15:37:06 +08:00
poller s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
register s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
runtime Fix wrong last step duration when job failed (#41) 2023-03-08 15:07:09 +01:00
.gitignore .gitignore forgejo-runner 2023-03-08 15:02:28 +01:00
.golangci.yml chore: add .golangci config 2022-11-24 15:36:28 +08:00
build.go Support cache (#25) 2023-02-28 23:48:37 +01:00
go.mod Support cache (#25) 2023-02-28 23:48:37 +01:00
go.sum Support cache (#25) 2023-02-28 23:48:37 +01:00
LICENSE Add license 2022-11-24 15:36:16 +08:00
main.go s|gitea.com/gitea/act_runner|codeberg.org/forgejo/runner| 2023-02-22 17:19:43 +01:00
Makefile Enable action as CI to test/build/release (#26) 2023-02-24 17:52:04 +01:00
README.md trigger the build 2023-03-01 00:32:50 +01:00

Forgejo Actions runner

Runs workflows found in .forgejo/workflows, using a format similar to GitHub actions but with a Free Software implementation.

It is compatible with Forgejo v1.19.0-0-rc0