File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,8 +318,21 @@ jobs:
318318 E2E_PG_ADMIN_URL : ' postgresql://postgres:postgres@127.0.0.1:5432/postgres'
319319 run : bun run test:e2e
320320
321+ - name : Check E2E diagnostics eligibility
322+ id : e2e_diagnostics
323+ if : failure()
324+ shell : bash
325+ run : |
326+ shopt -s nullglob
327+ markers=(apps/sim/e2e/.runs/*/markers/leak-scan-complete.json)
328+ if (( ${#markers[@]} > 0 )); then
329+ echo "safe=true" >> "$GITHUB_OUTPUT"
330+ else
331+ echo "safe=false" >> "$GITHUB_OUTPUT"
332+ fi
333+
321334 - name : Upload E2E diagnostics
322- if : failure() && hashFiles('apps/sim/e2e/.runs/**/markers/leak-scan-complete.json') != ' '
335+ if : failure() && steps.e2e_diagnostics.outputs.safe == 'true '
323336 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
324337 with :
325338 name : settings-e2e-${{ github.run_id }}
You can’t perform that action at this time.
0 commit comments