Update load.js

This commit is contained in:
Aleksandr Statciuk 2022-10-27 03:14:39 +03:00
parent 748e121223
commit 7ff2239137

View file

@ -68,7 +68,7 @@ async function getRunArtifacts(run) {
} }
async function getWorkflowRun(workflow) { async function getWorkflowRun(workflow) {
let today = dayjs.utc().format('YYYY-MM-DD') let today = dayjs.utc().subtract(1, 'd').format('YYYY-MM-DD')
let results = await octokit.request( let results = await octokit.request(
'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs', 'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs',
{ {