Correct GHA build step condition (#2818)

Fixes that the wrong build step was made conditional in #2817.
It should conditionally add annotations.

Signed-off-by: Wouter Born <github@maindrain.net>
pull/2820/head
Wouter Born 2022-03-06 09:19:26 +01:00 committed by GitHub
parent a54ef35adc
commit f664d756c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ jobs:
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: Upload Build Log
if: ${{ matrix.java == '11' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
uses: actions/upload-artifact@v2
with:
name: build-log-java-${{ matrix.java }}-${{ matrix.os }}
@ -86,8 +86,8 @@ jobs:
path: target/summary_report.html
- name: Report SAT Errors as Annotations
if: ${{ matrix.java == '11' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
uses: ghys/checkstyle-github-action@main
if: ${{ always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
with:
title: CheckStyle Violations
path: '**/checkstyle-result.xml'