diff --git a/dist/index.js b/dist/index.js index 28c51c5..4141382 100644 --- a/dist/index.js +++ b/dist/index.js @@ -35863,8 +35863,7 @@ async function run() { // 1. Get the jobs that belong to this workflow const jobsRes = await fetch( - `https://circleci.com/api/v2/workflow/${workflowId}/job`, - { headers: { 'Circle-Token': apiToken } } + `https://circleci.com/api/v2/workflow/${workflowId}/job` ); const jobs = await jobsRes.json(); if (!jobs.items.length) { diff --git a/index.js b/index.js index b653a0f..f43a9dc 100644 --- a/index.js +++ b/index.js @@ -46,8 +46,7 @@ async function run() { // 1. Get the jobs that belong to this workflow const jobsRes = await fetch( - `https://circleci.com/api/v2/workflow/${workflowId}/job`, - { headers: { 'Circle-Token': apiToken } } + `https://circleci.com/api/v2/workflow/${workflowId}/job` ); const jobs = await jobsRes.json(); if (!jobs.items.length) {