The API docs are currently not working (I get a 404), but I’d like to know if is it possible to trigger an Action/Workflow without having to login to Gitea manually.
For example, some cronjob to make a POST call to Gitea, to invoke Action XYZ in repository ABC.
Thanks. Do you mean the “comment on issue” workaround?
Yeah, I’d like something more direct, and that doesn’t write unnecessary “junk” in the database
But that’s definitely something that can be considered. Thank you.
The latest version of gitea (currently 1.23.1) supports the trigger: workflow_dispatch. Unfortunately I haven’t seen any api support for it yet either.
But if you’re thinking about triggering the workflow from a cron job, then maybe you could use the schedule trigger?
name: My test workflow
on:
workflow_dispatch:
schedule:
- cron: "@daily"
[...]