Skip to content

Commit 2f24f8e

Browse files
authored
Run only labeled workflow (#1111)
1 parent fcc9565 commit 2f24f8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pr-preview.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Preview PR
22
on:
33
pull_request_target:
4+
types: [ labeled ]
45

56
jobs:
67
build:
78
runs-on: "ubuntu-22.04"
8-
if: github.repository_owner == 'php'
9+
if: "github.repository_owner == 'php' && github.event.label.name == 'Status: Preview Allowed'"
910
steps:
1011
- uses: actions/checkout@v4
1112
with:
@@ -39,7 +40,7 @@ jobs:
3940
name: "Visual Tests"
4041

4142
runs-on: "ubuntu-latest"
42-
if: github.repository_owner == 'php'
43+
if: "github.repository_owner == 'php' && github.event.label.name == 'Status: Preview Allowed'"
4344

4445
strategy:
4546
matrix:

0 commit comments

Comments
 (0)