gitea/services/actions
Giteabot 0e20ccfe32
Use action user as the trigger user of schedules (#30581) (#30609)
Backport #30581 by @yp05327

Follow https://github.com/go-gitea/gitea/pull/30357

When user push to default branch, the schedule trigger user will be the
user.
When disable then enable action units in settings, the schedule trigger
user will be action user.
When repo is a mirror, the schedule trigger user will be action user. (
before it will return error, fixed by #30357)

As scheduled job is a cron, the trigger user should be action user from
Gitea, not a real user.

Co-authored-by: yp05327 <576951401@qq.com>
2024-04-20 10:46:17 +08:00
..
cleanup.go Artifacts retention and auto clean up (#26131) 2023-09-06 07:41:06 +00:00
clear_tasks.go Make Actions tasks/jobs timeouts configurable by the user (#27400) (#27402) 2023-10-03 10:26:35 +08:00
commit_status.go Fix create commit status (#30225) (#30340) 2024-04-08 23:30:55 +00:00
init.go Move notification interface to services layer (#26915) 2023-09-05 18:37:47 +00:00
job_emitter_test.go The job should always run when if is always() (#29464) (#29469) 2024-02-28 12:22:31 +01:00
job_emitter.go The job should always run when if is always() (#29464) (#29469) 2024-02-28 12:22:31 +01:00
notifier_helper.go Use action user as the trigger user of schedules (#30581) (#30609) 2024-04-20 10:46:17 +08:00
notifier.go Fix invalid link of the commit status when ref is tag (#29752) (#29908) 2024-03-20 04:36:32 +00:00
rerun_test.go Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
rerun.go Fix bugs in rerunning jobs (#29955) (#29983) 2024-03-22 03:57:10 +00:00
schedule_tasks.go Fix an actions schedule bug (#28942) (#28999) 2024-01-31 15:52:31 +00:00