diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 9d5707093ae..b455174e67f 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -4,17 +4,16 @@ env: on: push: branches: - - master # Triggers the workflow on commits pushed to master, including merges. + - master pull_request: - types: [opened, synchronize, reopened] # Triggers the workflow on new, updated, or reopened PRs. - workflow_dispatch: # Allows the workflow to be manually triggered. + workflow_dispatch: + merge_group: issue_comment: - types: [created] # Triggers the workflow when a comment is created. + types: [created] # Triggers the workflow when a comment is created. see `if` section jobs: unit: if: >- - github.event_name == 'pull_request' || - (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/retest unit')) + github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit') runs-on: ubuntu-latest steps: - uses: actions/checkout@v3