Skip to content

Commit

Permalink
Update CI workflow to trigger on pull request
Browse files Browse the repository at this point in the history
review comments
  • Loading branch information
CoMfUcIoS committed Nov 21, 2023
1 parent aead49a commit e4922b5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit e4922b5

Please sign in to comment.