Skip to content

Build report

Build report #28

Workflow file for this run

# ---------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ---------------------------------------------------------------------------
name: Build report
on:
workflow_run:
workflows:
- "build"
types:
- completed
permissions:
actions: write
checks: write
pull-requests: write
env:
PR_NUMBER_ARTIFACT_NAME: will-be-read-from-env-file
TEST_REPORTS_ARTIFACT_NAME: will-be-read-from-env-file
TEST_REPORTS_NAME: will-be-read-from-env-file
jobs:
report:
if: ${{ github.event.workflow_run.event == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup environment variables
uses: ./.github/actions/setup-env
- name: Download ${{ env.PR_NUMBER_ARTIFACT_NAME }}
uses: actions/download-artifact@v4
with:
github-token: ${{ github.token }}
name: ${{ env.PR_NUMBER_ARTIFACT_NAME }}
run-id: ${{ github.event.workflow_run.id }}
- name: Set PR number
id: set-pr-number
run: |
echo "pr-number=$(cat pr-number.txt)" >> "${GITHUB_OUTPUT}"
rm -rf pr-number.txt
- name: Publish reports
uses: turing85/publish-report@v2
with:
comment-message-pr-number: ${{ steps.set-pr-number.outputs.pr-number }}
download-artifact-name: ${{ env.TEST_REPORTS_ARTIFACT_NAME }}
download-artifact-run-id: ${{ github.event.workflow_run.id }}
report-name: ${{ env.TEST_REPORTS_NAME }}
report-path: '**/target/**/TEST*.xml'