summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml11
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ee03b82fa..352875a9d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -338,13 +338,20 @@ jobs:
# PR: only runs if code changed (doc-only PRs skip entirely)
# ---------------------------------------
membrowse:
- needs: cmake
+ needs: [check-paths, cmake]
+ if: |
+ always() && !cancelled() && (
+ github.event_name == 'push' ||
+ github.event_name == 'release' ||
+ github.event_name == 'workflow_dispatch' ||
+ (github.event_name == 'pull_request' && needs.check-paths.outputs.code_changed == 'true')
+ )
permissions:
contents: read
actions: read
uses: ./.github/workflows/membrowse-report.yml
with:
- code_changed: true
+ code_changed: ${{ needs.check-paths.outputs.code_changed == 'true' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
secrets: inherit
membrowse-comment: