From 89aeecb31a87edf80c8c7a9878d40a9867f930ca Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Wed, 10 Apr 2024 16:26:06 -0700 Subject: [PATCH] Dispatch. --- .github/workflows/test-example-workflows.yml | 5 +++-- .github/workflows/windows-os-test.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-example-workflows.yml b/.github/workflows/test-example-workflows.yml index bb20b4531..7edbd6256 100644 --- a/.github/workflows/test-example-workflows.yml +++ b/.github/workflows/test-example-workflows.yml @@ -7,9 +7,10 @@ on: jobs: test-default-workflow: if: >- - github.event_name == 'issue_comment' && + (github.event_name == 'workflow_dispatch') || + (github.event_name == 'issue_comment' && contains(github.event.comment.body, 'run_test') && - contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association) + contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association)) strategy: matrix: os: [macos, linux] diff --git a/.github/workflows/windows-os-test.yml b/.github/workflows/windows-os-test.yml index 8c53f14e3..c56a3c68f 100644 --- a/.github/workflows/windows-os-test.yml +++ b/.github/workflows/windows-os-test.yml @@ -8,9 +8,10 @@ on: jobs: test-action: if: >- - github.event_name == 'issue_comment' && + (github.event_name == 'workflow_dispatch') || + (github.event_name == 'issue_comment' && contains(github.event.comment.body, 'run_test') && - contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association) + contains(fromJson('["WRITE", "MAINTAIN", "ADMIN"]'), github.event.comment.author_association)) runs-on: Windows steps: - name: Use ComfyUI GitHub Action