From 38faf924162463016c9cbea8c2a0b418a102acff Mon Sep 17 00:00:00 2001 From: Brett Tofel Date: Wed, 13 Mar 2024 14:20:06 -0400 Subject: [PATCH] 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 Upstream-repository: operator-lifecycle-manager Upstream-commit: a5035a0c8ec904b3332ce7228e9a0ac70be4d11e --- staging/operator-lifecycle-manager/.github/workflows/unit.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/staging/operator-lifecycle-manager/.github/workflows/unit.yml b/staging/operator-lifecycle-manager/.github/workflows/unit.yml index 342aa87cd3..b455174e67 100644 --- a/staging/operator-lifecycle-manager/.github/workflows/unit.yml +++ b/staging/operator-lifecycle-manager/.github/workflows/unit.yml @@ -8,8 +8,12 @@ on: pull_request: workflow_dispatch: merge_group: + issue_comment: + types: [created] # Triggers the workflow when a comment is created. see `if` section jobs: unit: + if: >- + github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit') runs-on: ubuntu-latest steps: - uses: actions/checkout@v3