Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Less errors

Magnus Müllera9d3c4dd597d
diff --git a/.github/workflows/eval-on-pr.yml b/.github/workflows/eval-on-pr.yml
index 0422dfc8f..90359ffe4 100644
--- a/.github/workflows/eval-on-pr.yml
+++ b/.github/workflows/eval-on-pr.yml
@@ -54,17 +54,19 @@ jobs:
with:
script: |
const triggerSuccess = '${{ steps.trigger.outcome }}' === 'success';
+ const commitSha = '${{ github.event.pull_request.head.sha }}';
+ const workflowUrl = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
let body;
if (triggerSuccess) {
- body = '🚀 **Evaluation triggered** for commit `${{ github.event.pull_request.head.sha }}`\n\n' +
- 'Results will be posted automatically when complete.';
+ body = `🚀 **Evaluation triggered** for commit \`${commitSha}\`\n\n` +
+ `Results will be posted automatically when complete.`;
} else {
- body = '❌ **Failed to trigger evaluation** for commit `${{ github.event.pull_request.head.sha }}`\n\n' +
- 'Please check the [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.\n\n' +
+ body = `❌ **Failed to trigger evaluation** for commit \`${commitSha}\`\n\n` +
+ `Please check the [workflow logs](${workflowUrl}) for details.`;
}
- github.rest.issues.createComment({
+ await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,