From 3abee556112f727ec5cce7dc00186274bb0eb859 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Wed, 10 Apr 2024 16:16:25 -0700 Subject: [PATCH] Only run when comment is triggered. --- .github/workflows/windows-os-test.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/windows-os-test.yml b/.github/workflows/windows-os-test.yml index 484058810..8c53f14e3 100644 --- a/.github/workflows/windows-os-test.yml +++ b/.github/workflows/windows-os-test.yml @@ -1,21 +1,16 @@ name: Test ComfyUI Windows with Default Workflow on: - pull_request: - branches: - - master - - dev - paths-ignore: - - 'tests/**' - - 'tests-ui/**' - push: - paths-ignore: - - 'tests/**' - - 'tests-ui/**' + issue_comment: + types: [created] workflow_dispatch: jobs: test-action: + if: >- + github.event_name == 'issue_comment' && + contains(github.event.comment.body, 'run_test') && + contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association) runs-on: Windows steps: - name: Use ComfyUI GitHub Action