From 1a40b4fb95e96892ca38b08029fa60357ddbb4df Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Thu, 2 Oct 2025 12:35:06 -0500 Subject: [PATCH] Pass jobm name as env --- .github/workflows/test-e2e-fork.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-e2e-fork.yml b/.github/workflows/test-e2e-fork.yml index 6ac515e..fb06b21 100644 --- a/.github/workflows/test-e2e-fork.yml +++ b/.github/workflows/test-e2e-fork.yml @@ -36,6 +36,7 @@ jobs: env: ref: ${{ github.event.client_payload.pull_request.head.sha }} conclusion: ${{ needs.e2e-tests.result }} + job: e2e-tests with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -44,13 +45,7 @@ jobs: ref: process.env.ref }); - const check = checks.check_runs.filter(c => c.name === 'e2e-tests'); - - if (check.length === 0) { - console.log('No check run found with name "e2e-tests"'); - console.log('Available check runs:', checks.check_runs.map(c => c.name)); - throw new Error('No matching check run found'); - } + const check = checks.check_runs.filter(c => c.name === process.env.job); const { data: result } = await github.rest.checks.update({ ...context.repo,