From d133f831c0f94b9614609b624f1394d828d7d60f Mon Sep 17 00:00:00 2001 From: Fedor Dikarev Date: Wed, 20 Nov 2024 15:38:36 +0100 Subject: [PATCH] check that changes not empty for build matrix --- .github/workflows/build-macos.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 35e4b4b4f0..ed96e3f26e 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -41,9 +41,11 @@ jobs: check-macos-build: needs: [ files-changed ] if: | - contains(github.event.pull_request.labels.*.name, 'run-extra-build-macos') || - contains(github.event.pull_request.labels.*.name, 'run-extra-build-*') || - github.ref_name == 'main' + needs.files-changed.outputs.postgres_changes != '' && ( + contains(github.event.pull_request.labels.*.name, 'run-extra-build-macos') || + contains(github.event.pull_request.labels.*.name, 'run-extra-build-*') || + github.ref_name == 'main' + ) timeout-minutes: 30 runs-on: ubuntu-22.04 strategy: