Skip to content

Commit 39d866f

Browse files
committed
Remove pull_request types from on, simplify if
Signed-off-by: btofel <[email protected]>
1 parent f6b3a1e commit 39d866f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: .github/workflows/unit.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ env:
44
on:
55
push:
66
branches:
7-
- master # Triggers the workflow on commits pushed to master, including merges.
7+
- master
88
pull_request:
9-
types: [opened, synchronize, reopened] # Triggers the workflow on new, updated, or reopened PRs.
10-
workflow_dispatch: # Allows the workflow to be manually triggered.
9+
workflow_dispatch:
10+
merge_group:
1111
issue_comment:
12-
types: [created] # Triggers the workflow when a comment is created.
12+
types: [created] # Triggers the workflow when a comment is created. see `if` section
1313
jobs:
1414
unit:
1515
if: >-
16-
github.event_name == 'pull_request' ||
17-
(github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '/retest unit'))
16+
github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit')
1817
runs-on: ubuntu-latest
1918
steps:
2019
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)