From 39d866fd0f1fe62f7d1b7f2347b2d815c24a76ff Mon Sep 17 00:00:00 2001 From: Brett Tofel Date: Tue, 12 Mar 2024 12:50:44 -0400 Subject: [PATCH] Remove pull_request types from on, simplify if Signed-off-by: btofel --- .github/workflows/unit.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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