From 52fbacbfc62cdcc444d8988c26a3263a624a0058 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Wed, 10 Apr 2024 16:15:24 -0700 Subject: [PATCH] Only run when run_test is in the comment. --- .github/workflows/test-example-workflows.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test-example-workflows.yml b/.github/workflows/test-example-workflows.yml index 5ba591925..bb20b4531 100644 --- a/.github/workflows/test-example-workflows.yml +++ b/.github/workflows/test-example-workflows.yml @@ -1,20 +1,15 @@ name: Test ComfyUI Example Workflows 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-default-workflow: + if: >- + github.event_name == 'issue_comment' && + contains(github.event.comment.body, 'run_test') && + contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association) strategy: matrix: os: [macos, linux]