Skip to content
Discussion options

You must be logged in to vote

Hey @kaihendry — it's gotten much less cumbersome since you asked. Two things changed in the Actions toolset:

1. You don't need a separate list_workflows step. The consolidated actions_list tool takes the workflow file name directly as resource_id:

{
  "method": "list_workflow_runs",
  "owner": "you",
  "repo": "your-repo",
  "resource_id": "deploy.yaml",
  "workflow_runs_filter": { "status": "completed", "branch": "main" }
}

One call → latest runs for deploy.yaml.

2. Failure logs are now one call too. get_job_logs accepts run_id + failed_only=true + return_content=true:

{
  "owner": "you",
  "repo": "your-repo",
  "run_id": 1234567890,
  "failed_only": true,
  "return_content": true,
  "…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SamMorrowDrums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants