From b1958ea459cf962b7eccc75793b0e93ec959faf0 Mon Sep 17 00:00:00 2001 From: aidenvaines-bjss Date: Tue, 5 Mar 2024 10:49:02 +0000 Subject: [PATCH] adding conditional --- .github/workflows/logic-test-child.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/logic-test-child.yaml b/.github/workflows/logic-test-child.yaml index 2437c91..a215cd7 100644 --- a/.github/workflows/logic-test-child.yaml +++ b/.github/workflows/logic-test-child.yaml @@ -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 }}