Skip to content

Commit d1b9e27

Browse files
Add workflow summary step showing gate decision
This is part of Andy's work from PR 285. Co-Authored-By: Andrew Anderson <andy@clubanderson.com> Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
1 parent 0155b53 commit d1b9e27

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci-e2e-openshift.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,19 @@ jobs:
235235
}
236236
}
237237
238+
- name: Write workflow summary
239+
if: always()
240+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
241+
with:
242+
script: |
243+
const shouldRun = '${{ steps.check.outputs.should_run }}';
244+
if (shouldRun === 'true') {
245+
core.summary.addRaw('**E2E tests will run** for this trigger.');
246+
} else {
247+
core.summary.addRaw('**E2E tests were skipped** (gate check did not pass for this trigger).');
248+
}
249+
await core.summary.write();
250+
238251
# Build the FMA controller image on GitHub-hosted runner
239252
# Uses ko (Go-native image builder) and pushes to GHCR
240253
# Note: Skip for fork PRs on pull_request event (no secrets access).

0 commit comments

Comments
 (0)