mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Use process.env.job
instead of hardcoding job name
This commit is contained in:
4
.github/workflows/test-e2e-fork.yml
vendored
4
.github/workflows/test-e2e-fork.yml
vendored
@@ -44,10 +44,10 @@ jobs:
|
||||
ref: process.env.ref
|
||||
});
|
||||
|
||||
const check = checks.check_runs.filter(c => c.name === 'E2E Tests');
|
||||
const check = checks.check_runs.filter(c => c.name === process.env.job);
|
||||
|
||||
if (check.length === 0) {
|
||||
console.log('No check run found with name "E2E Tests"');
|
||||
console.log('No check run found with name "E2E Tests [reusable]"');
|
||||
console.log('Available check runs:', checks.check_runs.map(c => c.name));
|
||||
throw new Error('No matching check run found');
|
||||
}
|
||||
|
Reference in New Issue
Block a user