diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ee9c33..f4adeb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,11 +27,3 @@ jobs: with: name: test-results path: __tests__/__results__/*.xml - - - name: Workflow Test - uses: ./ - with: - name: Workflow Report - path: '*.xml' - reporter: jest-junit - show-html-notice: true diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 35dffb5..8af3ade 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -1,7 +1,10 @@ name: Test Report on: - workflow_dispatch: + workflow_run: + workflows: ['CI'] + types: + - completed jobs: report: @@ -11,6 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: ./ with: + artifact: test-results name: Workflow Report path: '*.xml' reporter: jest-junit diff --git a/dist/index.js b/dist/index.js index b540317..6eb33c5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -412,8 +412,6 @@ class TestReporter { core.info(`Check run create response: ${resp.status}`); core.info(`Check run URL: ${resp.data.url}`); core.info(`Check run HTML: ${resp.data.html_url}`); - core.info(`****** TEST *****`); - core.info(`Status of showHTML: ${this.showHTMLNotice}`); if (this.showHTMLNotice) { console.log(`::notice title=Test Results::${resp.data.html_url}`); } diff --git a/src/main.ts b/src/main.ts index c06f1e1..4b9bcdb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -199,8 +199,6 @@ class TestReporter { core.info(`Check run create response: ${resp.status}`) core.info(`Check run URL: ${resp.data.url}`) core.info(`Check run HTML: ${resp.data.html_url}`) - core.info(`****** TEST *****`) - core.info(`Status of showHTML: ${this.showHTMLNotice}`) if (this.showHTMLNotice) { console.log(`::notice title=Test Results::${resp.data.html_url}`) }