mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-23 16:00:46 +00:00
Pass jobm name as env
This commit is contained in:
9
.github/workflows/test-e2e-fork.yml
vendored
9
.github/workflows/test-e2e-fork.yml
vendored
@@ -36,6 +36,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ref: ${{ github.event.client_payload.pull_request.head.sha }}
|
ref: ${{ github.event.client_payload.pull_request.head.sha }}
|
||||||
conclusion: ${{ needs.e2e-tests.result }}
|
conclusion: ${{ needs.e2e-tests.result }}
|
||||||
|
job: e2e-tests
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
@@ -44,13 +45,7 @@ jobs:
|
|||||||
ref: process.env.ref
|
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('Available check runs:', checks.check_runs.map(c => c.name));
|
|
||||||
throw new Error('No matching check run found');
|
|
||||||
}
|
|
||||||
|
|
||||||
const { data: result } = await github.rest.checks.update({
|
const { data: result } = await github.rest.checks.update({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
|
Reference in New Issue
Block a user