@@ -322,6 +322,9 @@ jobs:
322322 uses : actions/github-script@v7
323323 env :
324324 INPUT_OVERLAY_COMMIT : ${{ needs.prepare.outputs.overlay-commit }}
325+ INPUT_OVERLAY_REPO : ${{ needs.prepare.outputs.overlay-repo }}
326+ INPUT_OVERLAY_BRANCH : ${{ needs.prepare.outputs.overlay-branch }}
327+ INPUT_WORKSPACE : ${{ needs.prepare.outputs.workspace }}
325328 INPUT_PUBLISHED_EXPORTS : ${{ needs.export.outputs.published-exports }}
326329 INPUT_FAILED_EXPORTS : ${{ needs.export.outputs.failed-exports }}
327330 INPUT_COMMAND_NAME : ${{ needs.parse.outputs.command_name }}
@@ -379,7 +382,23 @@ jobs:
379382 const reportContent = fs.readFileSync(reportPath, 'utf8');
380383 body = `${body}\n\n${reportContent}`;
381384 }
382-
385+
386+ // Check if E2E tests exist by looking for package.json in e2e-tests directory
387+ if (publishSuccess) {
388+ const [repoOwner, repoName] = core.getInput('overlay_repo').split('/');
389+ try {
390+ await github.rest.repos.getContent({
391+ owner: repoOwner,
392+ repo: repoName,
393+ path: `${core.getInput('workspace')}/e2e-tests/package.json`,
394+ ref: core.getInput('overlay_branch'),
395+ });
396+ body += '\n\nRunning e2e tests\n/test e2e-ocp-helm';
397+ } catch {
398+ body += '\n\nNo E2E tests available for this workspace.';
399+ }
400+ }
401+
383402 await github.rest.issues.createComment({
384403 issue_number: context.issue.number,
385404 owner: context.repo.owner,
0 commit comments