gitea/models/actions
Giteabot 69cc79173d
Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30409)
Backport #30357 by @yp05327


![image](https://github.com/go-gitea/gitea/assets/18380374/ddf6ee84-2242-49b9-b066-bd8429ba4d76)

When repo is a mirror, and commit author is an external user, then
`GetUserByEmail` will return error.

reproduce/test:
- mirror Gitea to your instance
- disable action and enable it again, this will trigger
`DetectAndHandleSchedules`

ps: also follow #24706, it only fixed normal runs, not scheduled runs.

Co-authored-by: yp05327 <576951401@qq.com>
2024-04-11 07:51:02 +00:00
..
artifact.go
main_test.go
run.go Cancel previous runs of the same PR automatically (#29961) 2024-03-21 15:01:35 +08:00
run_job.go
run_job_list.go
run_list.go
runner.go remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
runner_list.go
runner_token.go
runner_token_test.go
schedule.go Cancel previous runs of the same PR automatically (#29961) 2024-03-21 15:01:35 +08:00
schedule_list.go Avoid user does not exist error when detecting schedule actions when the commit author is an external user (#30357) (#30409) 2024-04-11 07:51:02 +00:00
schedule_spec.go
schedule_spec_list.go
status.go
task.go Fix ambiguous id when fetch Actions tasks (#30382) (#30383) 2024-04-10 03:24:31 +00:00
task_list.go
task_output.go
task_step.go
tasks_version.go
utils.go
utils_test.go
variable.go Make runs-on support variable expression (#29468) 2024-03-08 06:14:35 +00:00