check that changes not empty for build matrix

This commit is contained in:
Fedor Dikarev
2024-11-20 15:38:36 +01:00
parent aa19a412e2
commit d133f831c0

View File

@@ -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: