diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 342aa87cd3..b455174e67 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -8,8 +8,12 @@ on: pull_request: workflow_dispatch: merge_group: + issue_comment: + types: [created] # Triggers the workflow when a comment is created. see `if` section jobs: unit: + if: >- + github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit') runs-on: ubuntu-latest steps: - uses: actions/checkout@v3