Description
Feature Description
This is a combination of what is already proposed.
Additional API for action runners:
#31416
Global actions:
#32374
I believe the main motivation for the global actions is ability of defining some organizational business logic while retaining the integrations that actions give us. For example, a build result can be stored in an action result and does not require external service.
It would be sufficient to have ability to define "external" actions that are run externally to a repository via current webhook mechanic but can integrate with the Action API. More specifically, have some way of storing external "action" runs and making it visible to users.
- API to create external action events to an Issue/PR and maybe also Commit/Tag/ReleaseAPI to edit content of this data (eg. update logs, update status)API to fetch content of action log (as per Additional API functions for action runners #31416)
These events would be listed as normal action text logs in the UI. No need here to handle runners, etc, just ability to store custom logs and make them available to reviewers.
Why not have these as comments? Let's say there's 100kB of build logs -- these are not easy to consume as comments 😉
Screenshots
No response
Activity
AdamMajer commentedon Feb 24, 2025
For example, let's say we have repo
org/repo
org/repo#1
org/repo#1
asorg/repo/action/run/12344
-- synthetic action run.Which actions are appended to what item is then out-of-scope for gitea. Gitea is then just as store of information to the externally managed business logic.
ChristopherHX commentedon Feb 25, 2025
Including the ability to disable the Gitea Actions Trigger and keep using the UI, workflow_dispatch just needs to sent a webhook then external tools can handle it and report back
This matches with the original Gitea Actions Issue (#13539, before the original post has been updated) and would allow me to choose my own actions runtime runner.server instead of Gitea Actions to manage jobs 👍
I would amend the following to be more like
API to create external/synthetic action run entries with jobs, steps and logs
webhook is enough as a trigger, so I would not call it create run events. Or did I miss something?
For just uploading jobs on an action event, you could just implement the following protocol, add a custom label, add all steps for the UI in the dummy yaml file and done
AdamMajer commentedon Feb 26, 2025
Mostly "create run events" should be read as "create run event logs". The importance here is ability to create synthetic, externally created "action run event entries/logs" and to query them externally.
I'm not interested in scheduling or running any real actions/workflows by Gitea here. That is already covered elsewhere.
[-]Custom action logs integration API[/-][+]Custom/Synthetic action event logs API[/+]Download actions job logs from API (#33858)