Skip to content

Commit

Permalink
Testing fix for #13 (aka. phoenix-actions/test-reporting#31)
Browse files Browse the repository at this point in the history
Also fixed if-condition of "Update PR status comment on failure"
  • Loading branch information
turing85 committed Feb 28, 2023
1 parent beb7cd4 commit f23520f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ runs:
- name: Generate Test Report
id: generate-report
if: ${{ inputs.recreate-comment != 'true' }}
uses: phoenix-actions/test-reporting@v10
uses: turing85/test-reporting@feature/31-make-failure-text-optional
with:
fail-on-error: ${{ inputs.report-fail-on-error }}
list-suites: ${{ inputs.report-list-suites }}
Expand All @@ -232,7 +232,7 @@ runs:

- name: Update PR status comment on success
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ github.event_name == 'pull_request' && inputs.comment-enabled == 'true' && inputs.recreate-comment != 'true' && steps.generate-report.conclusion == 'success' }}
if: ${{ github.event_name == 'pull_request' && inputs.comment-enabled == 'true' && inputs.recreate-comment != 'true' && success() }}
with:
append: true
header: ${{ inputs.comment-header }}
Expand All @@ -241,15 +241,15 @@ runs:

- name: Update PR status comment on failure
uses: marocchino/sticky-pull-request-comment@v2
if: ${{ github.event_name == 'pull_request' && inputs.comment-enabled == 'true' && inputs.recreate-comment != 'true' && steps.generate-report.conclusion != 'success' }}
if: ${{ github.event_name == 'pull_request' && inputs.comment-enabled == 'true' && inputs.recreate-comment != 'true' && failure() }}
with:
append: true
header: ${{ inputs.comment-header }}
message: ${{ format(inputs.comment-message-failure, inputs.report-name, steps.generate-report.outputs.passed, steps.generate-report.outputs.failed, steps.generate-report.outputs.skipped, steps.generate-report.outputs.runHtmlUrl) }}
GITHUB_TOKEN: ${{ github.token }}

- name: Cancel Workflow
if: ${{ failure() && inputs.cancel-on-error == 'true' }}
if: ${{ failure() && inputs.cancel-workflow-on-error == 'true' }}
uses: andymckay/[email protected]

branding:
Expand Down

0 comments on commit f23520f

Please sign in to comment.