From 2e4d6f660fbc0f836dd0b8c4187d2205c94d24ef Mon Sep 17 00:00:00 2001 From: Albert Teoh Date: Sat, 6 Jan 2024 16:29:43 +1100 Subject: [PATCH] Use workflow run name Signed-off-by: Albert Teoh --- .github/workflows/ci-unit-tests-go-tip.yml | 23 +++++++++++++++++++--- .github/workflows/ci-unit-tests-report.yml | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-unit-tests-go-tip.yml b/.github/workflows/ci-unit-tests-go-tip.yml index 4e0e2ece919..60632d5668d 100644 --- a/.github/workflows/ci-unit-tests-go-tip.yml +++ b/.github/workflows/ci-unit-tests-go-tip.yml @@ -38,11 +38,28 @@ jobs: uses: EnricoMi/publish-unit-test-result-action@v2 if: always() with: - check_name: Go Tip Unit Tests Summary + check_name: Unit Tests Summary junit_files: junit-report.xml - # This workflow isn't run during Pull Requests, so check run and PR comment summaries are not needed. - check_run: false + # PR comments and check run will be performed by the "Unit Test Results" workflow. comment_mode: off + check_run: false + + - name: Upload Test Results + if: always() + uses: actions/upload-artifact@v3 + with: + name: Test Results + path: junit-report.xml - name: Lint run: echo skip linting on Go tip + + event-file: + name: "Event File" + runs-on: ubuntu-latest + steps: + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: Event File + path: ${{ github.event_path }} diff --git a/.github/workflows/ci-unit-tests-report.yml b/.github/workflows/ci-unit-tests-report.yml index 2aab612d505..df37488ab85 100644 --- a/.github/workflows/ci-unit-tests-report.yml +++ b/.github/workflows/ci-unit-tests-report.yml @@ -8,7 +8,7 @@ on: jobs: unit-test-results: - name: Unit Test Results + name: ${{ github.event.workflow_run.name }} runs-on: ubuntu-latest if: github.event.workflow_run.conclusion != 'skipped'