I'm using the Octokit API to request a specific workflow run. I can see in the documentation that I can request a specific workflow run by providing a workflow run ID. However I would like to always request the latest workflow run. How do I achieve this if I don't know what the ID will be?
E.g. the value of workflow-run-latest
here would always be changing.
octokit.actions.getWorkflowRun({
owner: owner,
repo: repo-name,
run_id: workflow-run-latest,
});
Thanks!