Skip to content

Action fails to find workflow run when not in the last 100 runs #47

@dhavemeyer-symplr

Description

@dhavemeyer-symplr

I'm am trying to get the last run for a specific workflow name and branch name, but the last run is not being found because other branches were built more than 100 times since the last build.

Here the action calls to get runs, but it gets the last 100 runs for all branches.

The API supports passing in a branch name: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-workflow

Could the action be updated to use the branch name in the API request if it is specified?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions