Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

ci: publish visual reports to Pages only from main

quanru95348ea2122b
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
index 3199b0a..bc45ebc 100644
--- a/.github/workflows/midscene-omarchy-4.0.3.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -221,12 +221,14 @@ jobs:
pages-report:
name: GitHub Pages report
needs: [omarchy-e2e, report-bundle]
+ # Only push runs on main publish to the public Pages history; pull
+ # requests still run every shard and produce the report artifact.
if: >-
always() &&
!cancelled() &&
needs.report-bundle.outputs.report-artifact-id != '' &&
- (github.event_name != 'pull_request' ||
- github.event.pull_request.head.repo.full_name == github.repository)
+ github.event_name == 'push' &&
+ github.ref == 'refs/heads/main'
permissions:
actions: read
contents: read
diff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.yml
index c8ea174..23d6da7 100644
--- a/.github/workflows/midscene-ubuntu-22.04.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@ -211,12 +211,14 @@ jobs:
pages-report:
name: GitHub Pages report
needs: [ubuntu-e2e, report-bundle]
+ # Only push runs on main publish to the public Pages history; pull
+ # requests still run every shard and produce the report artifact.
if: >-
always() &&
!cancelled() &&
needs.report-bundle.outputs.report-artifact-id != '' &&
- (github.event_name != 'pull_request' ||
- github.event.pull_request.head.repo.full_name == github.repository)
+ github.event_name == 'push' &&
+ github.ref == 'refs/heads/main'
permissions:
actions: read
contents: read