mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-21 23:18:06 +00:00
Update status for e2e-test check as well
This commit is contained in:
16
.github/workflows/test-e2e-fork.yml
vendored
16
.github/workflows/test-e2e-fork.yml
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user