Skip to content

Commit

Permalink
Add conditional statements to CI workflow for
Browse files Browse the repository at this point in the history
puppetlabs owner and provision service flag to
Acceptance job
  • Loading branch information
CoMfUcIoS committed Nov 16, 2023
1 parent cffea7e commit bdcb8a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
branches:
- "main"
workflow_dispatch:

jobs:
Spec:
if: ${{ github.repository_owner == 'puppetlabs' }}
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
if: ${{ github.repository_owner == 'puppetlabs' }}
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
with:
flags: "--provision-service"
secrets: "inherit"
1 change: 0 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
pull_request: # thats for tests, please dont merge if this is still here.

jobs:
Spec:
Expand Down

0 comments on commit bdcb8a9

Please sign in to comment.