Skip to content

Commit

Permalink
Run only labeled workflow (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
saundefined authored Nov 1, 2024
1 parent fcc9565 commit 2f24f8e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2f24f8e

Please sign in to comment.