How to get run_id after workflow_dispatch?

When I have multiple tasks running at the same time, it seems like I can’t get the run_id after I dispatch a workflow since the api only returns 204.

Hi @leng-yue, welcome to the GitHub Support Community! There isn’t a direct way to get the run_id when triggering a workflow_dispatch event. The best thing you can do is to poll the list workflow runs endpoint and catch your workflow as it starts, though there’s not a guarantee on how quickly your workflow will start after being triggered.