forgejo/services/actions
Earl Warren d45e6fb777
Some checks failed
testing / frontend-checks (push) Has been skipped
testing / backend-checks (push) Has been skipped
testing / test-unit (push) Has been skipped
testing / test-mysql (push) Has been skipped
testing / test-e2e (push) Has been skipped
testing / test-sqlite (push) Has been skipped
testing / test-pgsql (push) Has been skipped
testing / test-remote-cacher (valkey) (push) Has been skipped
testing / test-remote-cacher (redis) (push) Has been skipped
testing / test-remote-cacher (redict) (push) Has been skipped
testing / test-remote-cacher (garnet) (push) Has been skipped
testing / security-check (push) Has been skipped
/ release (push) Has been cancelled
[v11.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8884)
**Backport: https://codeberg.org/forgejo/forgejo/pulls/8864**

The status of two jobs by the same name shadow each other, they need to be distinct. If two jobs by the same name are found, they are made distinct by adding a -<occurence number> suffix.

Resolves forgejo/forgejo#8648

(cherry picked from commit 6bc1803c70)

```
Conflicts:
	services/actions/notifier_helper.go
	services/actions/schedule_tasks.go
	services/actions/workflows.go

  trivial context conflicts

  services/actions/job_parser.go

  use "github.com/nektos/act/pkg/jobparser"
```

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8884
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-08-16 18:24:51 +02:00
..
auth.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
auth_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
cleanup.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
cleanup_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
clear_tasks.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
commit_status.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
context.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
context_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
init.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
interface.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
job_emitter.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
job_emitter_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
job_parser.go [v11.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8884) 2025-08-16 18:24:51 +02:00
job_parser_test.go [v11.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8884) 2025-08-16 18:24:51 +02:00
main_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
notifier.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
notifier_helper.go [v11.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8884) 2025-08-16 18:24:51 +02:00
notifier_helper_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
rerun.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
rerun_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
schedule_tasks.go [v11.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8884) 2025-08-16 18:24:51 +02:00
task.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
variables.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
workflows.go [v11.0/forgejo] fix: de-duplicate Forgejo Actions job names when needed (#8884) 2025-08-16 18:24:51 +02:00