Only run when comment is triggered.

This commit is contained in:
Robin Huang 2024-04-10 16:16:25 -07:00
parent 52fbacbfc6
commit 3abee55611

View File

@ -1,21 +1,16 @@
name: Test ComfyUI Windows with Default Workflow name: Test ComfyUI Windows with Default Workflow
on: on:
pull_request: issue_comment:
branches: types: [created]
- master
- dev
paths-ignore:
- 'tests/**'
- 'tests-ui/**'
push:
paths-ignore:
- 'tests/**'
- 'tests-ui/**'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
test-action: 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 runs-on: Windows
steps: steps:
- name: Use ComfyUI GitHub Action - name: Use ComfyUI GitHub Action