From e4922b506f222cc415b6a1f549b31953c1a3f90f Mon Sep 17 00:00:00 2001 From: Ioannis Karasavvaidis Date: Tue, 21 Nov 2023 15:28:35 +0000 Subject: [PATCH] Update CI workflow to trigger on pull request review comments --- .github/workflows/ci.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef406f1f..6bde689c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,23 +1,22 @@ name: "ci" on: - pull_request: - branches: - - "main" + pull_request_review_comment: + types: [created] workflow_dispatch: jobs: Spec: if: | - github.repository_owner == 'puppetlabs' && - !github.event.pull_request.draft + github.repository_owner == 'puppetlabs' || + contains(github.event.comment.body, '/ci run tests') uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main" secrets: "inherit" Acceptance: if: | - github.repository_owner == 'puppetlabs' && - !github.event.pull_request.draft + github.repository_owner == 'puppetlabs' || + contains(github.event.comment.body, '/ci run tests') uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main" with: flags: "--provision-service"