Author: Luffy (sy-records) Committer: GitHub (web-flow) Pusher: sy-records Date: 2026-07-10T11:05:36+08:00
Commit: https://github.com/php/web-php/commit/5a720c00f61aee8ab117d2eb57b29c75b608a9bc Raw diff: https://github.com/php/web-php/commit/5a720c00f61aee8ab117d2eb57b29c75b608a9bc.diff Fix preview deploy trigger (#1965) Changed paths: M .github/workflows/preview-deploy.yml Diff: diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml index 0e241365c0..e8745b8e2d 100644 --- a/.github/workflows/preview-deploy.yml +++ b/.github/workflows/preview-deploy.yml @@ -5,7 +5,7 @@ on: types: - completed -# pull_request_target needs explicit perms; fork PRs default to read-only. +# workflow_run needs explicit perms for PR comments. permissions: contents: read issues: write @@ -16,7 +16,7 @@ jobs: runs-on: "ubuntu-22.04" if: > github.repository_owner == 'php' && - github.event.workflow_run.event == 'pull_request_target' + github.event.workflow_run.event == 'pull_request' steps: - name: Download PR number
