diff --git a/.github/workflows/cmake-build.yaml b/.github/workflows/cmake-build.yaml index 7a8a234d6..c11968b45 100644 --- a/.github/workflows/cmake-build.yaml +++ b/.github/workflows/cmake-build.yaml @@ -76,6 +76,7 @@ jobs: if: > github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' || + github.event_name == 'push' || github.event_name == 'workflow_call' || ( github.event_name == 'issue_comment' && @@ -176,11 +177,11 @@ jobs: if: > needs.pre-check.result == 'success' && ( - github.event_name == 'workflow_dispatch' || - github.event_name == 'issue_comment' || - (github.event_name == 'workflow_call' && inputs.skip-relevance-check == 'true') || - needs.pre-check.outputs.is_act == 'true' || - (needs.detect-changes.result == 'success' && needs.detect-changes.outputs.has_changes == 'true') + needs.detect-changes.result == 'skipped' || + ( + needs.detect-changes.result == 'success' && + needs.detect-changes.outputs.has_changes == 'true' + ) ) runs-on: ubuntu-24.04 strategy: diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 5701a2429..d3dc320fb 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -41,7 +41,10 @@ jobs: detect-changes: needs: pre-check - if: github.event_name != 'workflow_dispatch' && needs.pre-check.outputs.is_act != 'true' + if: > + needs.pre-check.result == 'success' && + github.event_name != 'workflow_dispatch' && + needs.pre-check.outputs.is_act != 'true' runs-on: ubuntu-latest permissions: contents: read @@ -82,9 +85,11 @@ jobs: coverage: needs: [pre-check, detect-changes] if: > - github.event_name == 'workflow_dispatch' || - needs.pre-check.outputs.is_act == 'true' || - (needs.detect-changes.result == 'success' && needs.detect-changes.outputs.has_changes == 'true') + needs.detect-changes.result == 'skipped' || + ( + needs.detect-changes.result == 'success' && + needs.detect-changes.outputs.has_changes == 'true' + ) runs-on: ubuntu-24.04 container: @@ -403,10 +408,10 @@ jobs: coverage-skipped: needs: [pre-check, detect-changes] if: > + needs.pre-check.result == 'success' && github.event_name != 'workflow_dispatch' && needs.pre-check.outputs.is_act != 'true' && - needs.detect-changes.result == 'success' && - needs.detect-changes.outputs.has_changes != 'true' + (needs.detect-changes.result == 'success' && needs.detect-changes.outputs.has_changes != 'true') runs-on: ubuntu-latest permissions: contents: read