mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Run only labeled workflow (#1111)
This commit is contained in:
5
.github/workflows/pr-preview.yml
vendored
5
.github/workflows/pr-preview.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user