mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 16:40:05 +00:00
[feat] add console.log when PR number is found
This commit is contained in:
9
.github/workflows/pr-playwright-deploy.yaml
vendored
9
.github/workflows/pr-playwright-deploy.yaml
vendored
@@ -37,6 +37,7 @@ jobs:
|
||||
}
|
||||
|
||||
const pr = pullRequests[0];
|
||||
console.log(`✅ Found PR #${pr.number} for branch: ${context.payload.workflow_run.head_branch}`);
|
||||
const branchName = context.payload.workflow_run.head_branch;
|
||||
const sanitizedBranch = branchName.toLowerCase().replace(/[^a-z0-9-]/g, '-').replace(/--+/g, '-').replace(/^-|-$/g, '');
|
||||
|
||||
@@ -127,7 +128,9 @@ jobs:
|
||||
return null;
|
||||
}
|
||||
|
||||
return pullRequests[0].number;
|
||||
const prNumber = pullRequests[0].number;
|
||||
console.log(`✅ Found PR #${prNumber} for branch: ${context.payload.workflow_run.head_branch}`);
|
||||
return prNumber;
|
||||
|
||||
- name: Get completion time
|
||||
id: completion-time
|
||||
@@ -188,7 +191,9 @@ jobs:
|
||||
return null;
|
||||
}
|
||||
|
||||
return pullRequests[0].number;
|
||||
const prNumber = pullRequests[0].number;
|
||||
console.log(`✅ Found PR #${prNumber} for branch: ${context.payload.workflow_run.head_branch}`);
|
||||
return prNumber;
|
||||
|
||||
- name: Download all deployment info
|
||||
if: steps.pr.outputs.result != 'null'
|
||||
|
||||
Reference in New Issue
Block a user