Skip to content

Commit

Permalink
Remove pull_request types from on, simplify if
Browse files Browse the repository at this point in the history
Signed-off-by: btofel <btofel@redhat.com>
  • Loading branch information
bentito committed Mar 12, 2024
1 parent f6b3a1e commit 39d866f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39d866f

Please sign in to comment.