Update status for e2e-test check as well

This commit is contained in:
Volodymyr Zotov
2025-10-02 15:28:48 -05:00
parent 316f605680
commit db2053fde4

View File

@@ -36,7 +36,6 @@ jobs:
env:
ref: ${{ github.event.client_payload.pull_request.head.sha }}
conclusion: ${{ needs.e2e-tests.result }}
job: check-external-pr
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
@@ -45,7 +44,8 @@ jobs:
ref: process.env.ref
});
const check = checks.check_runs.filter(c => c.name === process.env.job);
// update the check-external-pr check run
const check = checks.check_runs.filter(c => c.name === 'check-external-pr');
const { data: result } = await github.rest.checks.update({
...context.repo,
@@ -54,4 +54,14 @@ jobs:
conclusion: process.env.conclusion
});
return result;
// update the 'e2e-test' check run
const check = checks.check_runs.filter(c => c.name === 'e2e-test');
const { data: result } = await github.rest.checks.update({
...context.repo,
check_run_id: check[0].id,
status: 'completed',
conclusion: process.env.conclusion
});
return null;