Skip to content

Commit

Permalink
new check plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesw committed Nov 5, 2024
1 parent d31a097 commit 4abf434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven_test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ jobs:

- name: Publish Unit Test Results non forked repo
uses: mikepenz/action-junit-report@v5
if: failure() && ${{ github.event.pull_request.head.repo.full_name == github.repository }} # only report if a test has failed and we are a non forked repo
if: ${{ failure() && (github.event.pull_request.head.repo.full_name == github.repository) }} # only report if a test has failed and we are a non forked repo
with:
check_name: Unit Test Report ${{ inputs.project }}
report_paths: ${{ inputs.project }}/target/surefire-reports/*.xml
annotate_only: false

- name: Publish Unit Test Results forked repo
uses: mikepenz/action-junit-report@v5
if: failure() && ${{ github.event.pull_request.head.repo.full_name != github.repository }} # only report if a test has failed and we are a forked repo
if: ${{ failure() && (github.event.pull_request.head.repo.full_name != github.repository) }} # only report if a test has failed and we are a forked repo
with:
report_paths: ${{ inputs.project }}/target/surefire-reports/*.xml
annotate_only: true # forked repo cannot write to checks
Expand Down

0 comments on commit 4abf434

Please sign in to comment.