mirror of
https://gitea.com/gitea/runner.git
synced 2026-07-08 16:06:49 +08:00
ac1ba34518
Fix [#24039(GitHub)](https://github.com/go-gitea/gitea/issues/24039) At present, if a job fails in the `Set up job`, the result status of the job will still be `success`. The reason is that the `pre` steps don't call `SetJobError`, so the `jobError` will be nil when `post` steps setting the job result. See https://gitea.com/gitea/act/src/commit/5c4a96bcb797c7d013b878f1a3ceb74f9a834c64/pkg/runner/job_executor.go#L99 Reviewed-on: https://gitea.com/gitea/act/pulls/40 Reviewed-by: Jason Song <i@wolfogre.com> Co-authored-by: Zettat123 <zettat123@gmail.com> Co-committed-by: Zettat123 <zettat123@gmail.com>