Get workflow run inputs using API #73223
Replies: 3 comments 1 reply
-
Currently, GitHub Actions does not provide a direct way to fetch the inputs used in a workflow dispatch run via their API. The actions/runs API does not include this information in the response. A possible workaround is to log the inputs at the start of the workflow run, and then use the actions/list-workflow-run-logs API to fetch the logs for a specific run. Bare in mind, this requires parsing the logs to extract the input values, which can be cumbersome. Hope this helps solving the issue. Take care. 🍺 🍀 |
Beta Was this translation helpful? Give feedback.
-
This solution is for Get workflow environment using API I couldn't find anything for input but in my case luckily my input was consumed by "environment:" Not the solution @gilad-yadgar was looking for but yes this should be helpful to others who has same coincidence as mine ! |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Is there any way to get the inputs that were used in a workflow dispatch run?
Its not available in the actions/runs API- https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#get-a-workflow-run
Without this, I am unable to build a dashboard to analyze the performance / error ratio of workflows (based on inputs)
Is this planned to be available?
Beta Was this translation helpful? Give feedback.
All reactions