Dispatch.

This commit is contained in:
Robin Huang 2024-04-10 16:26:06 -07:00
parent 3312653899
commit 89aeecb31a
2 changed files with 6 additions and 4 deletions

View File

@ -7,9 +7,10 @@ on:
jobs: jobs:
test-default-workflow: test-default-workflow:
if: >- if: >-
github.event_name == 'issue_comment' && (github.event_name == 'workflow_dispatch') ||
(github.event_name == 'issue_comment' &&
contains(github.event.comment.body, 'run_test') && 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: strategy:
matrix: matrix:
os: [macos, linux] os: [macos, linux]

View File

@ -8,9 +8,10 @@ on:
jobs: jobs:
test-action: test-action:
if: >- if: >-
github.event_name == 'issue_comment' && (github.event_name == 'workflow_dispatch') ||
(github.event_name == 'issue_comment' &&
contains(github.event.comment.body, 'run_test') && 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 runs-on: Windows
steps: steps:
- name: Use ComfyUI GitHub Action - name: Use ComfyUI GitHub Action