Commit 348783f9f36 for woocommerce
commit 348783f9f366438a38aa396cda861e82f3ac1fd5
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date: Thu Oct 29 15:44:55 2026 +0200
[CI] Remove test reports workflow dispatch to woocommerce-test-reports (#70374)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4563f7e2b67..f7c49b89c18 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -627,69 +627,6 @@ jobs:
delete-merged: true
retention-days: 14
- - name: 'Publish report to dashboard'
- if: ${{ !! steps.merge-artifacts.outputs.artifact-id }}
- env:
- GH_TOKEN: ${{ secrets.TEST_REPORTS_DISPATCH_WORKFLOW_TOKEN }}
- PR_NUMBER: ${{ github.event.pull_request.number }}
- REPORT_NAME: ${{ matrix.report }}
- HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
- PR_TITLE: ${{ github.event.pull_request.title }}
- EVENT_NAME: ${{ inputs.trigger == '' && github.event_name || inputs.trigger }}
- REF_NAME: ${{ inputs.refName != '' && inputs.refName || github.ref_name }}
- run: |
- if [[ "${{ github.event_name }}" == "pull_request" ]]; then
- REPORT_TITLE="$PR_TITLE"
- REF_NAME="$GITHUB_HEAD_REF"
- elif [[ "${{ github.event_name }}" == "push" ]]; then
- REPORT_TITLE=`echo "$HEAD_COMMIT_MESSAGE" | head -1`
- else
- REPORT_TITLE="$EVENT_NAME"
- fi
-
- gh workflow run report.yml \
- -f artifact="$ARTIFACT_NAME" \
- -f run_id="$GITHUB_RUN_ID" \
- -f run_attempt="$GITHUB_RUN_ATTEMPT" \
- -f event="$EVENT_NAME" \
- -f pr_number="$PR_NUMBER" \
- -f ref_name="$REF_NAME" \
- -f commit_sha="$GITHUB_SHA" \
- -f repository="$GITHUB_REPOSITORY" \
- -f suite="$REPORT_NAME" \
- -f report_title="$REPORT_TITLE" \
- --repo woocommerce/woocommerce-test-reports
-
- - name: 'Add a link to test report in summary'
- if: ${{ strategy.job-index == 0 }} # only add the link once
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
- with:
- script: |
- const BASE_REPORT_URL = 'https://woocommerce.github.io/woocommerce-test-reports/#/';
- function getReportUrl() {
- if (context.eventName === 'pull_request') {
- return `${BASE_REPORT_URL}pr/${context.issue.number}`;
- }
-
- if (context.eventName === 'push') {
- const shortSha = context.sha.substring(0, 7);
- if (context.ref === 'refs/heads/trunk') {
- return `${BASE_REPORT_URL}trunk/trunk-${shortSha}`;
- }
- }
-
- return BASE_REPORT_URL;
- }
-
- const reportUrl = getReportUrl();
-
- await core.summary
- .addHeading('Test Report', '2')
- .addLink('See test reports', reportUrl)
- .addBreak()
- .addRaw('Note that it can take a few minutes for the reports to be generated and be available', true)
- .write();
-
- name: 'Download merged artifact'
if: ${{ !! steps.merge-artifacts.outputs.artifact-id }}
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1