Skip to content

Commit

Permalink
adding conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenvaines-bjss committed Mar 5, 2024
1 parent 4b65094 commit b1958ea
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/logic-test-child.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ on:
default: true

jobs:
plan:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: step complete
run: echo "CHILD ${{ inputs.environment }} ${{ inputs.component}} plan complete"

build-layers:
runs-on: ubuntu-latest

environment: ${{ inputs.environment }}
if: ${{ inputs.deploy_layers == true }} # workflow_call doesnt handle bools properly, see docs
steps:
- name: layer
run: echo "CHILD ${{ inputs.environment }} ${{ inputs.component}} Building layers complete - deploy_layers ${{ inputs.deploy_layers }}"

plan:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: step complete
run: echo "CHILD ${{ inputs.environment }} ${{ inputs.component}} plan complete"

apply:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
Expand Down

0 comments on commit b1958ea

Please sign in to comment.