Skip to content

Commit 38faf92

Browse files
bentitoci-robot
authored andcommitted
Add slash command access to make unit (#3186)
This should allow PR comments of the form: `/retest unit` to trigger `make unit` Signed-off-by: btofel <[email protected]> Upstream-repository: operator-lifecycle-manager Upstream-commit: a5035a0c8ec904b3332ce7228e9a0ac70be4d11e
1 parent 2867f78 commit 38faf92

File tree

1 file changed

+4
-0
lines changed
  • staging/operator-lifecycle-manager/.github/workflows

1 file changed

+4
-0
lines changed

staging/operator-lifecycle-manager/.github/workflows/unit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ on:
88
pull_request:
99
workflow_dispatch:
1010
merge_group:
11+
issue_comment:
12+
types: [created] # Triggers the workflow when a comment is created. see `if` section
1113
jobs:
1214
unit:
15+
if: >-
16+
github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit')
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)