diff --git a/deploy/eks/action.yml b/deploy/eks/action.yml index 3635a5b..4aa39c7 100644 --- a/deploy/eks/action.yml +++ b/deploy/eks/action.yml @@ -29,6 +29,10 @@ inputs: ATOMIC: description: EKS Atomic Deployment Flag (true or false) - default is true required: false + CLEAN_WORKSPACE: + description: Whether to clean the workspace before deploying (true or false) + required: false + default: "true" runs: using: "composite" @@ -56,6 +60,7 @@ runs: aws-region: ${{ inputs.AWS_REGION }} - uses: actions/checkout@v4 - name: Cleaning workspace + if: ${{ inputs.CLEAN_WORKSPACE == 'true' }} shell: bash run: shopt -s dotglob && rm -rf "${{ github.workspace }}"/* - name: Restoring workspace from cache