diff --git a/dist/index.js b/dist/index.js index b003142..c3eec13 100644 --- a/dist/index.js +++ b/dist/index.js @@ -35852,6 +35852,9 @@ async function run() { core.debug(`Ignoring context: ${payload.context}`) return } + + // Read out 'state' (whether CircleCI process was successful or not), then + // store in debug output along with the target_url const state = payload.state core.debug(`context: ${payload.context}`) core.debug(`state: ${state}`) @@ -35861,9 +35864,11 @@ async function run() { // Set the new status let artifacts_url = ''; const target = payload.target_url.split('?')[0]; // strip any ?utm=… - if (target.includes('/pipelines/circleci/')) { + if (target.includes('/pipelines/circleci/') || target.includes('app.circleci.com/workflow/')) { // ───── New GitHub‑App URL ─────────────────────────────────────────── // .../pipelines/circleci////workflows/ + // OR + // .../workflow/ const workflowId = target.split('/').pop(); core.debug(`workflow: ${workflowId}`); diff --git a/index.js b/index.js index 7d869e8..213b8d7 100644 --- a/index.js +++ b/index.js @@ -35,6 +35,9 @@ async function run() { core.debug(`Ignoring context: ${payload.context}`) return } + + // Read out 'state' (whether CircleCI process was successful or not), then + // store in debug output along with the target_url const state = payload.state core.debug(`context: ${payload.context}`) core.debug(`state: ${state}`) @@ -44,9 +47,11 @@ async function run() { // Set the new status let artifacts_url = ''; const target = payload.target_url.split('?')[0]; // strip any ?utm=… - if (target.includes('/pipelines/circleci/')) { + if (target.includes('/pipelines/circleci/') || target.includes('app.circleci.com/workflow/')) { // ───── New GitHub‑App URL ─────────────────────────────────────────── // .../pipelines/circleci////workflows/ + // OR + // .../workflow/ const workflowId = target.split('/').pop(); core.debug(`workflow: ${workflowId}`);