Only run when run_test is in the comment.

This commit is contained in:
Robin Huang 2024-04-10 16:15:24 -07:00
parent 5c385d2029
commit 52fbacbfc6

View File

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