From d28adfcd45303e106de65344438cdd3b754585ab Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Fri, 1 Nov 2024 17:00:55 +0300 Subject: [PATCH] Run only labeled workflow --- .github/workflows/pr-preview.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 08374b2ad7..ae01474259 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -1,11 +1,12 @@ name: Preview PR on: pull_request_target: + types: [ labeled ] jobs: build: runs-on: "ubuntu-22.04" - if: github.repository_owner == 'php' + if: "github.repository_owner == 'php' && github.event.label.name == 'Status: Preview Allowed'" steps: - uses: actions/checkout@v4 with: @@ -39,7 +40,7 @@ jobs: name: "Visual Tests" runs-on: "ubuntu-latest" - if: github.repository_owner == 'php' + if: "github.repository_owner == 'php' && github.event.label.name == 'Status: Preview Allowed'" strategy: matrix: