Skip to content

Commit

Permalink
Merge pull request #8 from seanconroy2021/output
Browse files Browse the repository at this point in the history
Update to add output summary to the action
  • Loading branch information
seanconroy2021 authored Oct 4, 2023
2 parents 1681874 + 1a052b6 commit 8e39760
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ runs:
steps:
- name: Run EC Validate
uses: docker://quay.io/hacbs-contract/ec-cli:snapshot
id: ec_validate
continue-on-error: true
with:
args: >
validate image
Expand All @@ -42,3 +44,13 @@ runs:
--certificate-oidc-issuer "${{ inputs.issuer }}"
${{ inputs.extra-params }}
--output yaml
--output summary-markdown=log.md
- name: Output summary
run: cat log.md >> $GITHUB_STEP_SUMMARY
shell: bash

- name: Fail if validate failed
if: steps.ec_validate.outcome != 'success'
run: exit 1
shell: bash

0 comments on commit 8e39760

Please sign in to comment.