GitHub Actions Workflow Dispatch API Now Returns Run IDs
15 similar posts
- GitHub Actions
- GitHub CLI
AI Summary
GitHub has updated its workflow dispatch API endpoint to support an optional boolean parameter called return_run_details. When enabled, the endpoint returns a 200 OK response containing the workflow ID, API URL, and workflow URL, replacing the previous 204 No Content status code. This change eliminates the need for extensive polling or custom tracking solutions by allowing developers to easily map API requests to corresponding workflow runs. The GitHub CLI v2.87.0 also incorporates this capability, defaulting return_run_details to true for workflow runs.
Key Takeaways
- Added the optional return_run_details boolean parameter to the workflow dispatch API endpoint.
- GitHub CLI v2.87.0 defaults return_run_details to true for triggered runs.
- Improves automation workflows by returning workflow ID, API URL, and workflow URL.
Why it matters
This update streamlines CI/CD automation pipelines by providing immediate run identification for triggered workflows, eliminating complex polling mechanisms and custom tracking overhead.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.