forgejo/services/actions
Earl Warren cd35473212 [v12.0/forgejo] a corrupted Forgejo Actions scheduled workflow is disabled (#8944)
**Backport: https://codeberg.org/forgejo/forgejo/pulls/8942**

The following errors are specific to the scheduled workflow being
handled. They do not imply the remaining scheduled workflows cannot
be scheduled successfully.

- Failure to create a scheduled task which is most likely caused
  by an invalid YAML file.
- Failure to parse the scheduling specs which can be caused by a
  number of formating errors.

Instead of returning on error, the corrupted workflow is disabled.

Also display more informative error messages so that the failed
workflow can be identified from the logged error.

(cherry picked from commit ab3cf7ddcf)

```
Conflicts:
	services/actions/schedule_tasks.go
  trivial context conflict
```

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8944
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-19 01:43:43 +02:00
..
TestServiceActions_startTask [v12.0/forgejo] a corrupted Forgejo Actions scheduled workflow is disabled (#8944) 2025-08-19 01:43:43 +02:00
auth.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
auth_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
cleanup.go feat: auto cleanup of offline runners (#7803) 2025-06-08 00:13:37 +02:00
cleanup_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
clear_tasks.go Actions Done Notification (#7491) 2025-04-24 15:15:24 +00:00
commit_status.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
context.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
context_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
init.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
interface.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
job_emitter.go Actions Done Notification (#7491) 2025-04-24 15:15:24 +00:00
job_emitter_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
job_parser.go [12.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8883) 2025-08-13 07:59:10 +02:00
job_parser_test.go [12.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8883) 2025-08-13 07:59:10 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
notifier.go [v12.0/forgejo] fix: disable Forgejo Actions email notifications on recovery (#8390) 2025-07-02 20:03:18 +02:00
notifier_helper.go [12.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8883) 2025-08-13 07:59:10 +02:00
notifier_helper_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
rerun.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
rerun_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
schedule_tasks.go [v12.0/forgejo] a corrupted Forgejo Actions scheduled workflow is disabled (#8944) 2025-08-19 01:43:43 +02:00
schedule_tasks_test.go [v12.0/forgejo] a corrupted Forgejo Actions scheduled workflow is disabled (#8944) 2025-08-19 01:43:43 +02:00
task.go chore(cleanup): replaces unnecessary calls to formatting functions by non-formatting equivalents (#7994) 2025-05-29 17:34:29 +02:00
variables.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
workflows.go [12.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8883) 2025-08-13 07:59:10 +02:00