[web-php] master: Run only labeled workflow (#1111)
| From: | Sergey Panteleev via GitHub | Date: | Fri, 01 Nov 2024 18:49:07 +0000 |
| Subject: | [web-php] master: Run only labeled workflow (#1111) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-32239@lists.php.net to get a copy of this message | ||
Author: Sergey Panteleev (saundefined)
Committer: GitHub (web-flow)
Pusher: saundefined
Date: 2024-11-01T21:45:33+03:00
Commit: https://github.com/php/web-php/commit/2f24f8eef1148420f51bf47b446ee9f6f1a75d54
Raw diff: https://github.com/php/web-php/commit/2f24f8eef1148420f51bf47b446ee9f6f1a75d54.diff
Run only labeled workflow (#1111)
Changed paths:
M .github/workflows/pr-preview.yml
Diff:
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: