From a073ac4493e54a2204b5b816fbc7d600df3b34ce Mon Sep 17 00:00:00 2001 From: AmirHossein Sakhrawi Date: Thu, 13 Jun 2024 06:12:52 +0330 Subject: [PATCH] chore: pkg.pr.new publish by command (#17452) Co-authored-by: patak <583075+patak-dev@users.noreply.github.com> --- .github/workflows/publish-commit.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-commit.yml b/.github/workflows/publish-commit.yml index 80660c03f3fad1..edb0b8ac528187 100644 --- a/.github/workflows/publish-commit.yml +++ b/.github/workflows/publish-commit.yml @@ -9,12 +9,12 @@ on: branches: - main - v6/environment-api - pull_request_review: - types: [submitted] + issue_comment: + types: [created] jobs: build: - if: github.event_name == 'push' || github.event.review.state == 'APPROVED' + if: github.repository == 'vitejs/vite' && (github.event_name == 'push' || github.event.issue.pull_request && startsWith(github.event.comment.body, '/pkg-pr-new')) runs-on: ubuntu-latest steps: