diff --git a/.github/workflows/preview-publish.yml b/.github/workflows/preview-publish.yml index cddd1fbd04..7e334be3d8 100644 --- a/.github/workflows/preview-publish.yml +++ b/.github/workflows/preview-publish.yml @@ -10,7 +10,7 @@ jobs: preview-success: runs-on: ubuntu-latest if: > - github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.event == 'pull_request_target' && github.event.workflow_run.conclusion == 'success' steps: - name: download _site artifact @@ -73,10 +73,10 @@ jobs: preview-failed: runs-on: ubuntu-latest if: > - github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.event == 'pull_request_target' && github.event.workflow_run.conclusion == 'failure' steps: - name: The job failed run: | id=${{ github.event.workflow_run.id }} - echo 工作流 $id 失败了 \ No newline at end of file + echo 工作流 $id 失败了