Skip to content

Commit 36a4cc3

Browse files
committed
fix output
1 parent 024094f commit 36a4cc3

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/build-attest.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125,19 +125,16 @@ jobs:
125125
--show-successes
126126
--strict=true
127127
--output text
128+
--output text=log.md
128129
129-
- name: Add validation output to summary
130-
if: always()
131-
run: |
132-
echo "## Conforma Validation Results" >> $GITHUB_STEP_SUMMARY
133-
echo "" >> $GITHUB_STEP_SUMMARY
134-
echo '```' >> $GITHUB_STEP_SUMMARY
135-
echo "${{ steps.validate.outputs.stdout }}" >> $GITHUB_STEP_SUMMARY
136-
echo '```' >> $GITHUB_STEP_SUMMARY
137-
138-
- name: Fail if validation failed
139-
if: steps.validate.outcome != 'success'
130+
- name: Output summary
131+
run: cat log.md >> $GITHUB_STEP_SUMMARY
132+
shell: bash
133+
134+
- name: Fail if validate failed
135+
if: steps.ec_validate.outcome != 'success'
140136
run: exit 1
137+
shell: bash
141138

142139
promote:
143140
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)