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: