Skip to content

Commit

Permalink
Fix last run lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas-Boltz authored Nov 2, 2023
1 parent ce31c77 commit e12b6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dispatch_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def main():

logging.info(f"Run completed with conclusion {run['conclusion']}")
else:
run = github.get_lastest_workflow_run(args.owner, args.repo, args.workflow_name)
run = github.get_lastest_workflow_run(args.owner, args.repo, args.workflow_name, filter_head_branch=ref)
if not run:
# In normal circumstances, this should never happen.
logging.error("Latest workflow run could not be fetched")
Expand Down

0 comments on commit e12b6ee

Please sign in to comment.