@@ -20,26 +20,34 @@ jobs:
2020 uses : actions/github-script@v7
2121 with :
2222 script : |
23- const issueBody = '${{ github.event.issue.body }}';
23+ const issueBody = `${{ github.event.issue.body }}`;
24+
25+ console.log("issueBody:", issueBody);
2426
2527 // More robust pattern matching with regex
2628 const vendorMatch = issueBody.match(/### Vendor\s*\n\s*\n\s*(.*?)(\n\s*\n|\n\s*###|$)/s);
29+ console.log("vendorMatch:", vendorMatch);
2730 const cameraMatch = issueBody.match(/### Camera\s*\n\s*\n\s*(.*?)(\n\s*\n|\n\s*###|$)/s);
31+ console.log("cameraMatch:", cameraMatch);
2832
2933 let vendor = vendorMatch ? vendorMatch[1].trim() : '';
34+ console.log("vendor:", vendor);
3035 const camera = cameraMatch ? cameraMatch[1].trim() : '';
36+ console.log("camera:", camera);
3137
3238 if (vendor === 'Other') {
3339 const otherVendorMatch = issueBody.match(/### Other Vendor\s*\n\s*\n\s*(.*?)(\n\s*\n|\n\s*###|$)/s);
3440 if (otherVendorMatch) vendor = otherVendorMatch[1].trim();
3541 }
42+ console.log("-1-:");
3643
3744 core.exportVariable('vendor', vendor);
45+ console.log("-2-:");
3846 core.exportVariable('camera', camera);
47+ console.log("-3-:");
3948
4049 console.log(`Extracted Vendor: ${vendor}`);
4150 console.log(`Extracted Camera: ${camera}`);
42-
4351 - name : Debug extracted data
4452 run : |
4553 echo "Vendor: ${{ env.vendor }}"
0 commit comments