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
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