Skip to content

Commit

Permalink
fix: stdout report not being produced when breaking build
Browse files Browse the repository at this point in the history
  • Loading branch information
erzz authored Sep 20, 2021
1 parent 4dabd8a commit 43bd850
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ runs:
DOCKLE_ACCEPT_FILES: ${{ inputs.accept-filenames }}
DOCKLE_ACCEPT_FILE_EXTENSIONS: ${{ inputs.accept-extensions }}
run: |
dockle -f "$REPORT_FORMAT" -o "$REPORT_NAME.$REPORT_FORMAT" --exit-code $EXIT_CODE --exit-level "$FAILURE_THRESHOLD" "$IMAGE"
# Re-run for stdout report too
# Exit always with exit 0 to continue with the stdout version
dockle -f "$REPORT_FORMAT" -o "$REPORT_NAME.$REPORT_FORMAT" --exit-code 0 --exit-level "$FAILURE_THRESHOLD" "$IMAGE"
# Re-run for stdout report and break build if required
dockle --exit-code $EXIT_CODE --exit-level "$FAILURE_THRESHOLD" "$IMAGE"

0 comments on commit 43bd850

Please sign in to comment.